Shiny Web App: Pokemon Stats

Gaurav Singh

9 October 2016

Pokemon Datasets

The application uses dataset on kaggle homepage by the name of Pokemon with stats. The application allows you to select the checkbox on the left to filter the pokemon of your choice and the graphs populate according to your choices. This can be used to compare the pokemons of different types.

Submission Example

library(ggplot2)
## Warning: package 'ggplot2' was built under R version 3.2.5
pokemon.data <- read.csv("../Pokemon.csv", header = T, stringsAsFactors = F)
colnames(pokemon.data) <- c("No", "Name", "Type.1", "Type.2", "Total", "HP", "Attack", "Defense", "SP.Atk", "SP.Def", "Speed", "Generation", "Legendary")
pokemon.plot3 <- ggplot(pokemon.data, aes(x=Total, fill=Type.1)) + geom_density(alpha=.5)
pokemon.plot3 <- pokemon.plot3 +
  facet_wrap(~Type.1) +
  labs(x="Total", y="Density", title="Pokemon Total Score") +
  theme(axis.text.x = element_blank(), axis.ticks.x = element_blank())

Plot Example

pokemon.plot3