0

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()
)
mechanical_meat
  • 163,903
  • 24
  • 228
  • 223

1 Answers1

1

You can supply a dummy value for x:

( ggplot(mtcars,aes(y='mpg',x=0))+geom_boxplot() )
mechanical_meat
  • 163,903
  • 24
  • 228
  • 223