Add Grids to a ggplot
Add grids to ggplot.
grids(axis = c("xy", "x", "y"), color = "grey92", size = NULL, linetype = NULL)
axis |
axis for which grid should be added. Allowed values include |
color |
grid line color. |
size |
numeric value specifying grid line size. |
linetype |
line type. An integer (0:8), a name (blank, solid, dashed,
dotted, dotdash, longdash, twodash). Sess |
# Load data data("ToothGrowth") # Basic plot p <- ggboxplot(ToothGrowth, x = "dose", y = "len") p # Add border p + grids(linetype = "dashed")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.