set_color_theme: Set ggplot default theme and palette

Description Usage Arguments Value Examples

View source: R/themes.R

Description

Set ggplot default theme and palette

Usage

1
set_color_theme(base_size = 12)

Arguments

base_size

base font size, given in pts.

Value

set theme and color to all ggplot figures

Examples

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)

Ehyaei/MPIThemes documentation built on Jan. 13, 2022, 7:28 p.m.