Module 6 - Visual Differences and Deviation Analysis in R
For this week's assignment, the class was introduced to the R software environment. We were instructed to create a visualization of a graph. I chose to use Jacksonville, FL Sheriff Department's police shooting data for my data set. I created a data frame using data from 2023. This data contained variables for officer race, gender, tenure, and age. The values for officer gender and race were difficult to graph because there was not much variety (most officers recorded in the data set were white and male, leaving little room to create a dynamic visualization.
I elected to use the variables Officer Age and Officer Tenure for my visualization. I created a scatter plot and a line graph using ggplot2 (with the help of ChatGPT). Below are the graphs:
The total number of incidents for 2023 is 35, suggesting an overwhelming trend toward fatalities within the Jacksonville Police Department during police involved shootings.
These diagrams do not necessarily fit within Few's idea of correlation. The graphs do not tell a story about whether there is a correlation between officer age, tenure, and why the shootings were fatal, but it does point to a problem with officer training and restraint.
To give us a better idea of how officer tenure and suspect fatalities are correlated, I created a bar graph to illustrate the relationship between these two variables. This can be seen below.




Comments
Post a Comment