R Ggplot Boxplot Multiple Variables 340394-R Ggplot Boxplot Multiple Variables
Library(ggplot2) df < dataframe(f1=factor(rbinom(100, 1, 045), label=c("m","w")), f2=factor(rbinom(100, 1, 045), label=c("young","old")), boxthis=rnorm(100)) df$f1f2 < interaction(df$f1, df$f2) ggplot(aes(y = boxthis, x = f1f2), data = df) geom_boxplot()