I am new to ggplot2, I want to plot boxplot of multiple numerical columns in the same plot, and group the boxplot by a factor from the last column the header of the dataframe is like:
id var1 var2 var3 factor
I know I can do:
ggplot(df,aes(x=factor,y=var1)+geom_boxplot()
For each variable.
How can I plot them together with ggplot2? The base graphics utility boxplot(df[,-c(id,factor)] will plot them together.

