Hello,
I am wondering if there is a way to create boxplot for a single variable, without adding x = (category)
however, this function requires to have x variable... Is there a way to rather have the name of y variable under x axis and no categories?
boxplot_func <- function(y) {
ggplot(mtcars)+
aes(y= y)+
geom_boxplot()+
stat_summary(fun="mean",geom="point", pch=3,color="red")+
geom_jitter(color= "grey")+
theme_bw()
}