Rows: 423 Columns: 44
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (2): County, Crime Type
dbl (42): Year, Anti-Male, Anti-Female, Anti-Transgender, Anti-Gender Identi...
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
plot2 <- hatenew %>%ggplot() +geom_bar(aes(x=year, y=crimecount, fill = id),position ="dodge", stat ="identity") +ggtitle("Hate Crime Type in NY Counties Between 2010-2016") +ylab("Number of Hate Crime Incidents") +labs(fill ="Hate Crime Type")plot2
Hate Crime Type in NY Counties Between 2010-2016
plot3 <- hatenew %>%ggplot() +geom_bar(aes(x=county, y=crimecount, fill = id),position ="dodge", stat ="identity") +ggtitle("Hate Crime Type in NY Counties Between 2010-2016") +ylab("Number of Hate Crime Incidents") +labs(fill ="Hate Crime Type")plot3
`summarise()` has grouped output by 'county'. You can override using the
`.groups` argument.
counties
# A tibble: 277 × 3
# Groups: county [60]
county year sum
<chr> <dbl> <dbl>
1 Kings 2012 136
2 Kings 2010 110
3 Kings 2016 101
4 Kings 2013 96
5 Kings 2014 94
6 Kings 2015 90
7 Kings 2011 86
8 New York 2016 86
9 Suffolk 2012 83
10 New York 2013 75
# … with 267 more rows
Create the barplot for the 5 counties in 2012 with the highest incidents of hate-crimes
plot4 <- hatenew %>%filter(county =="Kings"| county =="New York"| county =="Suffolk"| county =="Nassau"| county =="Queens") %>%ggplot() +geom_bar(aes(x=county, y=crimecount, fill = id),position ="dodge", stat ="identity") +labs(ylab ="Number of Hate Crime Incidents",title ="5 Counties in NY with Highest Incidents of Hate Crimes",subtitle ="Between 2010-2016", fill ="Hate Crime Type")plot4
How would calculations be affected by looking at hate crimes in counties per year by population densities?
Rows: 62 Columns: 8
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (1): Geography
dbl (7): 2010, 2011, 2012, 2013, 2014, 2015, 2016
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# A tibble: 6 × 3
county year population
<chr> <dbl> <dbl>
1 Albany , New York 2010 304078
2 Allegany , New York 2010 48949
3 Bronx , New York 2010 1388240
4 Broome , New York 2010 200469
5 Cattaraugus , New York 2010 80249
6 Cayuga , New York 2010 79844
Focus on 2012
nypoplong12 <- nypoplong %>%filter(year ==2012) %>%arrange(desc(population)) %>%head(10)nypoplong12$county<-gsub(" , New York","",nypoplong12$county)nypoplong12
# A tibble: 10 × 3
county year population
<chr> <dbl> <dbl>
1 Kings 2012 2572282
2 Queens 2012 2278024
3 New York 2012 1625121
4 Suffolk 2012 1499382
5 Bronx 2012 1414774
6 Nassau 2012 1350748
7 Westchester 2012 961073
8 Erie 2012 920792
9 Monroe 2012 748947
10 Richmond 2012 470978
Recall the total hate crime counts:
Kings 713
New York 459
Suffolk 360
Nassau 298
Queens 235
# A tibble: 1,692 × 5
county year crimetype id crimecount
<chr> <dbl> <chr> <chr> <dbl>
1 Albany 2016 Crimes Against Persons anti-transgender 0
2 Albany 2016 Property Crimes anti-transgender 0
3 Allegany 2016 Property Crimes anti-transgender 0
4 Bronx 2016 Crimes Against Persons anti-transgender 4
5 Bronx 2016 Property Crimes anti-transgender 0
6 Broome 2016 Crimes Against Persons anti-transgender 0
7 Cayuga 2016 Property Crimes anti-transgender 0
8 Chemung 2016 Crimes Against Persons anti-transgender 0
9 Chemung 2016 Property Crimes anti-transgender 0
10 Chenango 2016 Crimes Against Persons anti-transgender 0
# … with 1,682 more rows
Essay
Regardless of the flawed dataset, it has given us a general idea of how hate crime has been. I have never known that there are so many different types of hate crime. And because of its specification, we can distinguish each category. The upward trend reflects reality and helps to bring attention to the public and law makers.
There is a lot of value 0, which makes it a bit hard to read without generating charts. There are “Property Crimes” and ” Crimes Against Persons” but not every county has those two categories, which causes the difficulty in navigating the information.
Two different paths you would like to study about this dataset:
I would generate charts to group areas that have hate crime upward trends. Doing so might help legislatures work on specific areas to find reasons, then come up with effective solutions.
Furthermore, I would study the dataset of Property Crimes and Crimes Against Persons in NY counties separately and then, compare those two categories based on NY population dataset.
Two things I would do to follow up the hate crimes dataset:
First of all, I would like to gather data of ethnicity predominance in each county to find the correlations in hate crimes.
Secondly, police force plays such an important role in hate crime control. Thus, I would like to study the number of police stations in each county in New York that stay active and responsive to crimes.