Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Calculus Single Variable

Authors: Deborah Hughes Hallett, Deborah Hughes Hallet, Andrew M Gleason, William G McCallum, Daniel E Flath, Patti Frazer Lock, David O Lomen, David Lovelock,

6th Edition

1118748611, 9781118748619

More Books

Students also viewed these Mathematics questions