scale_colour_poke {palettetown} | R Documentation |
Get a pokemon palette by either giving a pokemon number or name.
scale_colour_poke(..., pokemon = 1, spread = NULL)
scale_fill_poke(..., pokemon = 1, spread = NULL)
scale_color_poke(..., pokemon = 1, spread = NULL)
... |
Other arguments passed on to |
pokemon |
An integer or character pokemon name |
spread |
How many, quite distinct, colours should be returned. See details. |
If spread
is given an integer, the full palette is
clustered into that many groups (ward clustering in HSV space).
The most common colour in each cluster is then returned. It is
hoped this will give a good balance between reflecting the pokemons
colouring while giving relatively distinct colours.
library(ggplot2)
qplot(Sepal.Length, Sepal.Width, colour = Species, data=iris) +
scale_colour_poke(pokemon = 'Metapod')