ggplot_global_set_color: Globally Set ggplot2 Colors/Fills

Description Usage Arguments References See Also Examples

Description

Globally set the color and fill of ggplot2.

Usage

1
2
ggplot_global_set_color(color = "black", alter.fill = TRUE,
  alter.color = TRUE, reset = TRUE)

Arguments

color

A single color character string.

alter.fill

logical. If TRUE fill is globally altered.

alter.color

logical. If TRUE colour is globally altered.

reset

logical. If colour and fill are reset to black before applying new color.

References

http://stackoverflow.com/a/21175042/1000343

See Also

update_geom_defaults

Examples

1
2
3
4
ggplot_global_set_color("purple")

ggplot(mtcars, aes(factor(cyl))) + geom_bar()
ggplot(mtcars, aes(hp, mpg, group = factor(cyl))) + geom_point()

trinker/plotflow documentation built on May 31, 2019, 9:42 p.m.