Description Usage Arguments Details Examples
View source: R/scale_color_pL.R
Color scale constructor for pL colors
1 | scale_color_pL(palette = "main", discrete = TRUE, reverse = FALSE, ...)
|
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 |
palette pL color palettes include "main", "cool", "hot", "mixed", "grey" and "all"
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.