Description Usage Arguments Value Examples
This is the default colour scale for categorical variables for the disney-like palette. It does not generate colour-blind safe palettes. These are the palettes to choose from:
cinderella
monet
small_world
alice
pan
when_i_was_your_age
firefly
main
Palette Colours inspired by:
http://elijahmeeks.com/#content/blog/2015_08_17_palettes
Palette made ffg blog post:
https://drsimonj.svbtle.com/creating-corporate-colour-palettes-for-ggplot2
1 2 | scale_color_disney(palette = "main", discrete = TRUE,
reverse = FALSE, ...)
|
palette |
Character name of palette in disney_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 |
Colour scale of disney-like palette
1 2 3 4 5 | # Color by discrete variable using default palette
library(ggplot2)
ggplot(iris, aes(Sepal.Width, Sepal.Length, color = Species)) +
geom_point(size = 4) +
scale_color_disney()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.