美国 1975_2015 犯罪率 shiny App
The apps
If you want to analyze crime statistics in the United States, this app provides comprehensive tools for that purpose. On the "Map" page, users can explore how different crimes are distributed geographically across various categories and timeframes. The "Data Explore" page offers a platform where individuals can set weightage levels for specific crime types based on their personal priorities. By analyzing these factors, users can evaluate risk profiles and determine risk scores for each state within our dataset.
Target of the app
The app is designed for users who plan to visit the U.S.A, aiming to help them avoid dangerous places that could serve as a travel destination.
Data
该平台提供了美国各地区类型别犯罪率的数据分析(1970至2015年)。该大学的数据科学系课程系列一的数据集(数据科学概论课程 milestone 一)。
The dataset was employed to construct an application. For more information about this dataset, please refer here. The maps package in R was utilized to produce a map of the United States based on data from this source. Furthermore, Wikipedia content was referenced to create a CSV file named “states_abbr.csv” located within the data folder.
Project screenshot
Crime Rate in The U.S.A

Explanation: The explanation details how the crime rate is determined. It specifies that this metric is calculated by dividing the number of criminal incidents (occurrences of criminal incidents) by the population size. The result is expressed as the number of crimes per 100,000 people. Each state is represented by a color that corresponds to its recorded annual crime rates. When multiple types of crimes are selected, their respective rates are combined (summed) to provide a comprehensive view illustrating crime concentration within each state.
The application leverages data sourced from the Marshall Violent Crime dataset. Data collection originates from a city-level perspective, with certain states exhibiting missing entries within this dataset. Consequently, observe that certain regions lack crime data on your map. Using accessible information, I categorize records by state to represent their respective crime rates effectively.
Overall Rating of States According to Risk Scores

As a metric increases, so does its corresponding level of danger. Specifically, this score is computed as a weighted average reflecting both crime rates and assigned importance values. When arranging these metrics in order, lower scores place certain regions higher up in safety rankings compared to others.
Distribution of Real Crime Records

该图表展示了犯罪率的真实数据。
各个州按照相同的顺序排列。
Note: The crime rate is computed by dividing the total number of crimes by population. It is documented as the number of crimes per 100k people.
