I am very new to R and to any packages in R. I looked at the ggplot2 documentation but could not find this. I want a box plot of variable boxthis
with respect to two factors f1
and f2
. That is suppose both f1
and f2
are factor variables and each of them takes two values and boxthis
is a continuous variable. I want to get 4 boxplots on a graph, each corresponding to one combination from the possible combinations that f1
and f2
can take. I think using the basic functionality in R, this can be done by
> boxplot(boxthis ~ f1 * f2 , data = datasetname)
Thanks in advance for any help.