I have grouped data with, say, 2 parameters:
set.seed(1)
dat <- data.frame( xx=sample(10,9),
yy=sample(20,9),
group=c('A','B', 'C') )
I can draw boxplots for each dimension:
ggplot(dat, aes(x=group, y=yy, fill=group)) + geom_boxplot()
ggplot(dat, aes(x=group, y=xx, fill=group)) + geom_boxplot() + coord_flip()
Now I would to combine these and draw boxplots reflecting data on both variables, something like this: (this image was made manually in graphic editor)
Is there any easy way to draw this kind of boxplots?