Learn R Programming

Rokemon (version 0.0.1)

annotate_pogo: Pokemon Go Team Logos

Description

Enhance your plots with a background picture of your favorite Pokemon Go team.

Usage

annotate_pogo(team = "mystic", opacity = 0.5)

Arguments

team

string. either 'mystic', 'valor' or 'instinct'

opacity

opacity of team logo.

References

The logos were not designed by me. All credit goes to this guy.

Examples

Run this code
# NOT RUN {
library(tidyverse)

pokemon %>%
 dplyr::filter(type1=="water") %>%
 ggplot(aes(defense,attack))+
 annotate_pogo(team = "mystic")+
 geom_point()+
 theme_mystic()+
 labs(title="Team Mystic",subtitle="Water Pokemon")
# }

Run the code above in your browser using DataLab