scale_color_poketype: Pokemon color scale

Description Usage Arguments Examples

View source: R/theme_gameboy.R

Description

This allows to use the Pokemon type color scale in ggplot.

Usage

1
2
3

Arguments

...

common discrete scale parameters for ggplot

Examples

1
2
3
4
5
6
7
8
9
library(ggplot2)

ggplot(pokemon,aes(defense,attack))+
  geom_point(aes(col=type1))+
  scale_color_poketype()

ggplot(pokemon,aes(type1))+
  geom_bar(aes(fill=type1))+
  scale_color_poketype()

schochastics/Rokemon documentation built on Jan. 16, 2022, 2:52 a.m.