NYC Restaurant Inspection

The detailed analysis report can be found on this Github Bookdown website: NYC Restaurant Inspection

Here I just introduce the interactive map built with R Shiny apps and how to use it. The link for this interactive map is https://jiaqi-tang.shinyapps.io/NYC_RESTAURANT_INSPECTION/

Map

image1

Users can search restaurants by using selection on the left. (Multiple selection in one section is allowable.)

The map will show the corresponding restaurants by the points. Every single point represents a restaurant:

  • If you move your mouse on the map, once it’s on a point, the name of the corresponding restaurant will be shown.
  • If you click on a point, some details about the corresponding restaurant will be shown, including id, name and street.
  • You can also use the dropdown menu on the left for filtering and individual searchings.
  • If you feel the point too vague to be identified, zoom in the map and the point will be more clear.
  • If you want to know the corresponding description of the violation code, use the bottom bar for searching.

Line Chart

3

Type in the restaurant id in the left section, a line chart showing the score change of the restaurant appears below the map. The less the score is, the better the restaurant’s food quality is.

If you move your mouse on a point, the details about the score will be shown.

4

Notes on use of this interactive graph:

Make sure you don’t input extra whitespace when type in the id on the left section.

Violation Type Search

5

Type in the violation code as shown in the line chart on the right, the description of that specific code will appear below.

The search supports only one violation code at a time.