# How to add overall data to group by category chart in R? [closed]

i have a (ggplot) chart whit multiple data grouped by factor column. I also would like to add an "overall" group to it. Is there an easy way to do this?

For example i want to extend this plot with a overall boxplot

p <- ggplot(mtcars, aes(factor(cyl), mpg))

p + geom_boxplot()


regards, Ákos

library(ggplot2)