Emily Cunningham
2026-12-05
Tornadoes vary in strength and occur more frequently in some states than others.
sn == 1 (68,103 records).| Analysis | Records |
|---|---|
| Magnitude and injuries | 67,349 |
| Tornadoes by state | 68,070 |
injuries_by_magnitude <- tornadoes_injuries %>%
group_by(mag) %>%
summarise(
total_records = n(),
total_injuries = sum(inj),
average_injuries = mean(inj)
)The mean allows comparison between magnitude groups of different sizes.
tornadoes_by_state <- tornadoes_states %>%
group_by(st) %>%
summarise(total_tornadoes = n()) %>%
arrange(desc(total_tornadoes))The counts are sorted from highest to lowest.
Texas ranked first (9,212), followed by Kansas (4,392) and Oklahoma (4,088).
library(maps)
us_states <- map_data("state")
tornadoes_map <- tornadoes_by_state %>%
mutate(region = tolower(state.name[match(st, state.abb)]))
map_df <- us_states %>%
left_join(tornadoes_map, by = "region")State abbreviations are converted to names so the counts can be joined to the map boundaries.
Higher counts were concentrated in the central and southern United States. Darker colors indicate higher counts.
Thank you!