Description Usage Arguments Examples
Add grids to ggplot.
1 2 |
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 |
1 2 3 4 5 6 7 8 9 | # Load data
data("ToothGrowth")
# Basic plot
p <- ggboxplot(ToothGrowth, x = "dose", y = "len")
p
# Add border
p + grids(linetype = "dashed")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.