Description Usage Arguments Examples
Setup defaults for specific geoms
1 2 3 | mejr_geom_defaults(base_size = 11, black = 51, gray = 214, lty = 3,
lwd = base_size/20, cex = base_size/9, stroke = base_size * 0.05,
alpha = 0.5, pch = 21, txt = base_size/4, reset = FALSE)
|
base_size |
base font size |
black |
Values from 0 to 255, indicating the darkest line and text colors (255). |
gray |
gray color value (0-255) |
lty |
linetype |
lwd |
linewidth |
cex |
point size |
stroke |
stroke width |
alpha |
alpha |
pch |
point shape |
txt |
text size |
reset |
reset all back to default |
1 2 3 4 5 6 | # This will change the point size and shape for
# all geoms in which GeomPoint inherits from.
mejr_geom_defaults(cex = 1.1, pch = 19)
# Reset defaults back to their original state.
mejr_geom_defaults(reset=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.