This is my code. I have two factor variables (cyl
and am
)that I want to plot in my box plot.
boxplot(mpg~cyl+am,data=mtcars)
I want to make a boxplot for each individual factor levels - 4,6,8,0,1 but not the interaction of them (e.g. 4.0).
My box plot should only have (4,6,8,0,1) on the axis. How do I do that?