sm_vgrid | R Documentation |
This theme has major vertical grids.
sm_vgrid(legends = TRUE, borders = TRUE)
legends |
If the legend needs to be displayed, the input should be TRUE. If the legend is not needed, the input should be FALSE. |
borders |
If the border needs to be displayed, the input should be TRUE. If the border is not needed, the input should be FALSE. |
Returns a background theme with major vertical grids (ggplot2 output).
library(ggplot2)
library(smplot2)
ggplot(data = mpg) +
geom_point(mapping = aes(x = displ, y = hwy, color = class)) +
sm_vgrid()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.