I have a sample dataframe below
library(ggplot2) DF <- data.frame(site = rep(LETTERS[1:7], each=20), y = runif(7*20))
This Dataframe has 7 Letters(Categories). Is there a way to make boxplot for only A and B (for any 2 categories) categories side by side without transforming the dataset. I trying with the below code but not sucessful
ggplot(DF)+geom_boxplot(mapping = aes(site~A+B,y=y)).