I'm trying to create ezPlots for the visualisations of ANOVA for a subset o variables from my data frame, here's the code using the nasty eval hack (i haven't found other way to pass variables from the loop to ezPlot). The problem is that all the pdfs created by the loop are empty.
for (name in names[14:27]) {
pdf(paste('./figs/', name ,'.pdf'))
eval(parse(text=
paste0('plot = ezPlot(data=df,
wid=Subject,
dv=',name,',
between=Condition,
within=Var,
type=3,
x=Var,
split=Condition)'
)
))
dev.off()
}