Description Usage Arguments Value Examples
Set ggplot default theme and palette
1 | set_color_theme(base_size = 12)
|
base_size |
base font size, given in pts. |
set theme and color to all ggplot figures
1 2 3 4 5 6 7 | ## Not run:
library(ggplot2)
set_color_theme()
ggplot(data = mtcars, aes(x = cyl)) +
geom_bar(aes(y = ..count..,fill = as.character(cyl)))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.