where does this dataset come from?

crimes

Format

data frame of seven variables and about 23k rows:

  • State: name of the state

  • Abb: two-letter state abbreviation

  • Year: year of the record

  • Population: state population

  • Type: type of crime committed

  • Type2: type of crime committed distinguishing violent and property crimes

  • Number: number of crimes

Examples

library(magrittr) crimes %>% dplyr::filter(Type=="Murder") %>% ggplot(aes(x = Year, y = Number/Population)) + geom_line(aes(group = State))