19 September 2017
The purpose of this presentation is to review a very super dataset! We will be looking at the Superhero & Supervillian Data that comes from the Super Hero Database that can be found here.
Load your libraries
library(readxl)
library(plotly)Load your data in. Note I have a localised xls file in my working directory.
superherodataset <- read_excel("superherodataset.xls")Take a look at the superherodataset to learn about the data.
## [1] 611 15
## Classes 'tbl_df', 'tbl' and 'data.frame': 611 obs. of 15 variables:
## $ Name : chr "3-D Man" "A-Bomb" "Abe Sapien" "Abin Sur" ...
## $ Alignment : chr "good" "good" "good" "good" ...
## $ Intelligence : num 50 38 88 50 63 88 63 1 1 10 ...
## $ Strength : num 31 100 14 90 80 100 10 1 1 8 ...
## $ Speed : num 43 17 35 53 53 83 12 1 1 13 ...
## $ Durability : num 32 80 42 64 90 99 100 1 1 5 ...
## $ Power : num 25 17 35 84 55 100 71 0 0 5 ...
## $ Combat : num 52 64 85 65 95 56 64 1 1 20 ...
## $ Intelligence__1: num 44 43 NA NA 45 83 NA NA NA 35 ...
## $ Strength__1 : num 23 100 NA NA 80 100 NA NA NA 10 ...
## $ Speed__1 : num 30 36 NA NA 54 87 NA NA NA 13 ...
## $ Durability__1 : num 33 89 NA NA 86 100 NA NA NA 11 ...
## $ Power__1 : num 30 27 NA NA 53 98 NA NA NA 7 ...
## $ Combat__1 : num 46 62 NA NA 79 70 NA NA NA 22 ...
## $ Date Logged : POSIXct, format: "2014-06-06" "2014-06-06" ...
So 611 heroes/villians across 15 variables!
Look for any patterns between Allegiance and Intelligence, Strength and Speed!
Try and locate your favourite hero, villian or other on the chart!