powered by
It has x and y axis but no grids.
sm_classic(legends = FALSE)
Returns a background theme as a ggplot2 object.
If the legend needs to be displayed, the input should be TRUE. If the legend is not needed, the input should be FALSE.
library(ggplot2) library(smplot2) ggplot(data = mpg) + geom_point(mapping = aes(x = displ, y = hwy, color = class)) + sm_classic()
Run the code above in your browser using DataLab