Description Usage Arguments Examples
View source: R/theme_gameboy.R
This allows to use the Pokemon type color scale in ggplot.
1 2 3 |
... |
common discrete scale parameters for ggplot |
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.