scale_color_pL: Color scale constructor for pL colors

Description Usage Arguments Details Examples

View source: R/scale_color_pL.R

Description

Color scale constructor for pL colors

Usage

1
scale_color_pL(palette = "main", discrete = TRUE, reverse = FALSE, ...)

Arguments

palette

Character name of palette in pL_palettes

discrete

Boolean indicating whether color aesthetic is discrete or not

reverse

Boolean indicating whether the palette should be reversed

...

Additional arguments passed to discrete_scale() or scale_color_gradientn(), used respectively when discrete is TRUE or FALSE

Details

palette pL color palettes include "main", "cool", "hot", "mixed", "grey" and "all"

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
data <- tibble::tibble(x = 0:100,
						 y = sample(1:1000, 101, replace=TRUE),
						 z = sample(LETTERS[1:3], 101, replace = TRUE),
						 a = sin(x))
data %>% ggplot2::ggplot() +
aes(x, y,
		col = z) +
geom_point(size= 3) +
xlab("axis_label") +
labs(title = "This is the main title",
		 subtitle = "with subtitle",
		 caption = "This is a random scatter plot prepared for theme demonstration.") +
 theme_pL() +
scale_color_pL()

vcavett/pLtemplate documentation built on Feb. 6, 2022, 2:53 a.m.