I created the following plot with panels using ggplot():
ggplot()
ggplot(merged.table, aes(x=iter, y=freq,group=var)) + geom_line()+facet_wrap(.~var)