Closed bradfordjohnson closed 1 year ago
ggmagnify
github
activity tiles, for number of tornadospacman::p_load(tidyverse,
ggmap)
tornados <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2023/2023-05-16/tornados.csv')
tor_mag_5 <- tornados |>
filter(mag == 5) |>
mutate(post = case_when(
yr >= 2000 ~ "Post-2000",
yr < 2000 ~ "Pre-2000"
))
bbox <- c(bottom = 25.75, top = 49 , right = -67, left = -125)
usmap <- get_stamenmap(bbox = bbox, zoom = 6, maptype = 'toner-lite')
ggmap(usmap) +
geom_density_2d_filled(data = tor_mag_5,
mapping = aes(x = slon, y = slat), alpha = .5) +
theme_void() +
labs(title = "Where F5 Tornados Start")
Make the starting point and ending points for tornados, and then have a line drawn between the two
Visual is done, just need to update site
Data Dictionary
tornados.csv