This is mt cars data-set.
I want to plot the box-plot of mpg column, we also have to specify x aesthetic if we are not it is showing error
(
ggplot(cars,aes(y='mpg',x=))+geom_boxplot()
)
This is mt cars data-set.
I want to plot the box-plot of mpg column, we also have to specify x aesthetic if we are not it is showing error
(
ggplot(cars,aes(y='mpg',x=))+geom_boxplot()
)
You can supply a dummy value for x
:
( ggplot(mtcars,aes(y='mpg',x=0))+geom_boxplot() )