theme_change: Color theme change

Description Usage Arguments See Also Examples

View source: R/plotn.R

Description

Color theme change

Usage

1
2
3
4
5
6
7
8
9
theme_change(
  default_col = NULL,
  default_fill = NULL,
  palette = "d3",
  palette_types = NULL,
  number = 10,
  col.alpha = 1,
  fill.alpha = 0.5
)

Arguments

default_col

Default setting colors which is used for dot, line and border colors

default_fill

Default setting colors which is used for fill colors

palette

Color palette, "default", "ggplot2" and palettes in ggsci. Please see col_genelator().

palette_types

"Continuous" or "discrete" in ggplot2 palette or palette types in ggsci

number

Number of colors to generate

col.alpha

Transparency of default color

fill.alpha

Transparency of default fill color

See Also

[ggsci] <https://cran.r-project.org/web/packages/ggsci/vignettes/ggsci.html>

[plotn::col_genelator]

Examples

1
2
3
4
5
6
d <- data.frame(x = c(1:10, 11:20, 21:30), group = rep(c("A","B","C"), each = 10))
theme_change()
boxplotn(x ~ group, data = d)

theme_change(palette = "uchicago", palette_type = "light")
boxplotn(x ~ group, data = d)

bugplant/plotn documentation built on June 23, 2021, 1:18 a.m.