pokepal: Get a pokemon palette.

Description Usage Arguments Details See Also Examples

Description

Get a pokemon (R) palette by either giving a pokemon number or name.

Usage

1
pokepal(pokemon = 1, spread = NULL, extra = NULL)

Arguments

pokemon

An integer or character pokemon name

spread

How many, quite distinct, colours should be returned. See details.

extra

If an integer, select one of the extra palettes (i.e. not based on individual pokemon)

Details

Many of the pure pokemon palettes are not great. I have manually created a few "extra" palettes (e.g., teamrocket). These might be easier to use.

If spread is given an integer, the full palette is clustered into that many groups (ward clustering in HSV space, using only hue and downweighted saturation). 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.

A few pokemon have odd names. Argument pokemon ignores letter case. Female and Male Nidoran are named NidoranF and NidoranM respectively. Mr. Mime should be either 'Mr. Mime' or 'mr. mime'. The full stop and space are needed.

See Also

ichooseyou

Examples

1
2
pal <- pokepal(3)
plot(1:length(pal), col = pal)

timcdlucas/palettetown documentation built on May 31, 2019, 1:48 p.m.