I\'m trying to make interaction plot with ggplot2. My code is below:
ggplot2
library(ggplot2) p <- qplot(as.factor(dose), len, data=ToothGrowth, geom
a much easier way. without ddply. directly with ggplot2.
ggplot(ToothGrowth, aes(x = factor(dose) , y=len , group = supp, color = supp)) + geom_boxplot() + geom_smooth(method = lm, se=F) + xlab("dose") + ylab("len")