mejr_geom_defaults: Setup defaults for specific geoms

Description Usage Arguments Examples

Description

Setup defaults for specific geoms

Usage

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)

Arguments

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

Examples

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)

ggdistribute documentation built on May 2, 2019, 10:25 a.m.