Gaurav Singh
9 October 2016
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.
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())pokemon.plot3You can view the app here[https://gaursin.shinyapps.io/pokemon/] Please write to me at gauravrasingh@gmail.com for feedback. Thanks for your feedback and time.