powered by
Globally set the color and fill of ggplot2.
ggplot_global_set_color(color = "black", alter.fill = TRUE, alter.color = TRUE, reset = TRUE)
A single color character string.
logical. If TRUE fill is globally altered.
TRUE
logical. If TRUE colour is globally altered.
logical. If colour and fill are reset to black before applying new color.
http://stackoverflow.com/a/21175042/1000343
update_geom_defaults
# NOT RUN { ggplot_global_set_color("purple") ggplot(mtcars, aes(factor(cyl))) + geom_bar() ggplot(mtcars, aes(hp, mpg, group = factor(cyl))) + geom_point() # }
Run the code above in your browser using DataLab