Gun deaths

Application exercise
Author

Your name

Published

November 5, 2024

Modified

August 13, 2024

youth <- gun_deaths |>
  filter(age <= 65)

Gun deaths by age

We have data about 100798 individuals killed by guns. Only 15687 are older than 65. The distribution of the remainder is shown below:

Gun deaths by race

youth |>
  mutate(race = fct_infreq(race) |> fct_rev()) |>
  ggplot(mapping = aes(y = race)) +
  geom_bar() +
  labs(y = "Victim race")