powered by
This theme has vertical and horizontal grids.
sm_hvgrid_minor(legends = TRUE, borders = TRUE)
Returns a background theme that has both horizontal and vertical major and minor grids (ggplot2 output).
If the legend needs to be displayed, the input should be TRUE. If the legend is not needed, the input should be FALSE.
If the border needs to be displayed, the input should be `TRUE`. If the border 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_hvgrid_minor()
Run the code above in your browser using DataLab