View source: R/scale_fill_cori.r
scale_fill_cori | R Documentation |
Fill scale constructor for cori colors
scale_fill_cori(palette = "ctg2gn", discrete = TRUE, reverse = FALSE, ...)
palette |
Character name of palette in cori_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_fill_gradientn(), used respectively when discrete is TRUE or FALSE |
ggplot2::ggplot(iris, ggplot2::aes(Sepal.Width, Sepal.Length, color = Sepal.Length)) + ggplot2::geom_point(size = 4, alpha = .6) + scale_color_cori(discrete = FALSE, palette = "ctg7")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.