cs448 - Tool Changing Scales With Ggplot
cs448 - Tool Changing Scales With Ggplot
For each of the following examples, we've used data from the storms.csv file you used during the
course. To set that data up for use with this tool, use the following code:
library(tidyverse)
# Read in the storm data
storms <- read.csv("storms.csv")
# Set the storm category to be a factor
storms$Category <- factor(storms$Category, levels = -1:5)
# Set the measurement date/time to be a factor
storms$Date <- factor(storms$Date, levels = unique(storms$Date))
# Create data set with observations only for Hurricanes Katrina, Sandy,
# and Wilma
sampleStorms <- storms %>% filter(Name %in% c("Katrina", "Sandy", "Wilma"))
Katrina
color = "Storm Name", Sandy
960
title = "Relationship Between Storm Wilma