Question: THE ANSWER IS REQUIRED IN R LANGUAGE !!! Develop a shiny app that allows the user to filter data for each year selected. It is

THE ANSWER IS REQUIRED IN R LANGUAGE !!!

Develop a shiny app that allows the user to filter data for each year selected. It is not a good idea to download the data. Instead, read the date remotely.

For the filtered data,

(a) Display all cases with the DT package.

(b) Develop a map with the leaflet or highcharter package showing each person killed by the police in 2020. Display the relevant information on the map for each case. (Chapter4 Notes)

(c) Plot the distribution of the variable "race" using a bar graph.

(d) Plot the distribution of the variable "gender".

(e) Plot the distribution of the variable "threat_level".

(f) Plot the distribution of the variable "flee".

(g) Plot the distribution of the variable "age" (with geom_histogram() or geom_density() in ggplot2).

(h) Plot the distribution of the variable "armed".

(i) Plot the top 10 cities that have most victims.

A summary under each plot in part (c) through (i). You should have 7 summaries.

Refer to data: https://github.com/washingtonpost/data-police-shootings/releases/download/v0.1/fatal-police-shootings-data.csv

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!