sm_hvgrid {smplot2} | R Documentation |
Minimalistic theme with major horizontal and vertical grids
Description
This theme has major vertical and horizontal grids. This is useful for plotting correlations. sm_corr_theme() is exactly the same as sm_hvgrid().
Usage
sm_hvgrid(legends = TRUE, borders = TRUE)
Arguments
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'. |
Value
Returns a background theme that has both horizontal and vertical major grids (ggplot2 output).
Examples
library(ggplot2)
library(smplot2)
ggplot(data = mpg) +
geom_point(mapping = aes(x = displ, y = hwy, color = class)) +
sm_hvgrid()
[Package smplot2 version 0.2.4 Index]