scale_color_tgam {tgamtheme} | R Documentation |
Color scale constructor for The Globe and Mail's colors
Description
Color scale constructor for The Globe and Mail's colors
Usage
scale_color_tgam(palette = "main", discrete = TRUE, reverse = FALSE, ...)
scale_colour_tgam(palette = "main", discrete = TRUE, reverse = FALSE, ...)
Arguments
palette |
Character name of palette in tgam_palettes. Currently, one of 'main' or 'alternate'. |
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 |
Value
A ggplot2 colour scale object, to be passed to a ggplot2 object
Examples
library(ggplot2)
ggplot(diamonds, aes(depth, color = cut)) +
geom_density() +
xlim(55, 70) +
scale_color_tgam()
[Package tgamtheme version 0.1.0 Index]