palettetown
0.1
Ein R-Paket, das Pokémon-Farbpaletten bereitstellt.
Dieses Paket ist stark von Pokepalettes inspiriert.
Beachten Sie, dass Pokemon, Pokedex und alle Pokemon-Namen Marken von Nintendo sind. Ich besitze nichts.
install.packages( ' palettetown ' )
library( palettetown )
library( devtools )
install_github( ' timcdlucas/palettetown ' )
library( palettetown )
# Show ten of the better palettes
pokedex()
# Show ten palettes starting from pokemon #155
# Get 7 fairly distinct colours for each.
pokedex( 155 , 7 )
# Show ten palettes starting from Metapod
pokedex( ' Metapod ' )
# Show ten palettes that are fairly colour blind friendly
pokedex( cb = 1 )
plot(rnorm( 20 ), rnorm( 20 ), col = pokepal( pokemon = 137 , spread = 6 ), pch = 16 , cex = 1.8 )
# palettetown doesn't import ggplot2
library( ggplot2 )
qplot( Sepal.Length , Sepal.Width , colour = Species , data = iris , size = 2 ) +
scale_colour_poke( pokemon = 156 , spread = 3 )
qplot( factor ( carb ), data = mtcars , geom = " bar " ,
fill = factor ( carb )) +
scale_fill_poke( pokemon = ' Quilava ' , spread = 6 )