Description Usage Arguments Details Examples
Get a pokemon palette by either giving a pokemon number or name.
1 2 3 4 5 | 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.
1 2 3 | library(ggplot2)
qplot(Sepal.Length, Sepal.Width, colour = Species, data=iris) +
scale_colour_poke(pokemon = 'Metapod')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.