{"id":5299,"date":"2016-10-01T14:11:33","date_gmt":"2016-10-01T18:11:33","guid":{"rendered":"http:\/\/research.prattsils.org\/?p=5299"},"modified":"2016-10-01T14:11:33","modified_gmt":"2016-10-01T18:11:33","slug":"making-grade-visualizations-restaurant-grades-manhattan","status":"publish","type":"post","link":"https:\/\/studentwork.prattsi.org\/infovis\/visualization\/making-grade-visualizations-restaurant-grades-manhattan\/","title":{"rendered":"Making The Grade:  Visualizations of Restaurant Grades in Manhattan"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/studentwork.prattsi.org\/infoshow\/wp-content\/uploads\/sites\/2\/2016\/10\/Picture1-1.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"wp-image-5467 size-medium aligncenter\" src=\"https:\/\/i0.wp.com\/studentwork.prattsi.org\/infoshow\/wp-content\/uploads\/sites\/2\/2016\/10\/Picture1-1-620x85.png?resize=620%2C85\" width=\"620\" height=\"85\" \/><\/a><\/p>\n<p style=\"text-align: left;padding-left: 30px\">For this visualization, I started with noticing letter grades in windows of restaurants. Using NYC open data site, initial<\/p>\n<p style=\"text-align: left\">lines of inquiry included questions such as \u201cWhich parts of Manhattan had the most restaurants with \u2018B\u2019 or lower?\u201d, and \u201cWhich<\/p>\n<p style=\"text-align: left\">restaurants in Hell\u2019s Kitchen had the best grades?\u201d, and \u201cHow many grade \u2018A\u2019 restaurants are there in the city?\u201d, and \u201cHow<\/p>\n<p style=\"text-align: left\">many grade \u2018A\u2019 restaurants are there in ZIP 10036?\u201d That last question is the one I focused on and discuss below.<\/p>\n<p style=\"text-align: left\">As described above, my initial questions were exploratory in nature. I did not have a specific theory in mind to prove or<\/p>\n<p style=\"text-align: left\">disprove.<\/p>\n<p style=\"text-align: left;padding-left: 30px\">Working with <a href=\"https:\/\/data.cityofnewyork.us\/Health\/DOHMH-New-York-City-Restaurant-Inspection-Results\/43nn-pn8j\">restaurant data<\/a>, I was able to pull data for all boroughs, but narrowed it to Manhattan. I decided to focus<\/p>\n<p style=\"text-align: left\">on Zip code in which I live (10036), and see what the grades were for the restaurants there. Looking at the ZIP-specific data, I<\/p>\n<p style=\"text-align: left\">had a concern about it being too narrow. After filtering the data for 10036, it had more than enough (over 1,800 restaurants), so<\/p>\n<p style=\"text-align: left\">the minimum data requirements were exceeded. The associated visualization is <a href=\"https:\/\/public.tableau.com\/profile\/tony.volpe#!\/vizhome\/Lab2_64\/Sheet1\">here.<\/a><\/p>\n<p style=\"text-align: left;padding-left: 30px\">\u00a0Additionally, I looked at restaurant grades and inspection dates for all Manhattan ZIP codes, primarily to see what the<\/p>\n<p style=\"text-align: left\">visualization would look like, as well obtaining an overall picture of grades by ZIP. Though not the main focus of this lab, it is<\/p>\n<p style=\"text-align: left\">included as an example of Tableau outputs.<\/p>\n<p style=\"text-align: left;padding-left: 30px\">\u00a0Visualization # 1 (Figure 1) was what I had in initially envisioned mind when looking for data. It looked like it would be<\/p>\n<p style=\"text-align: left\">easily read and understood (aside from the use of red\/green, for color-blind folks), and is somewhat close to what I used for the<\/p>\n<p style=\"text-align: left\">lab. The ultimate end product looked similar to Figure 1.<\/p>\n<p style=\"text-align: left\">(Figure 1, below. Source: <a href=\"https:\/\/harvarddatasciencerestaurantinspections.files.wordpress.com\/2014\/12\/health-grades-by-borough.png)\">https:\/\/harvarddatasciencerestaurantinspections.files.wordpress.com\/2014\/12\/health-grades-by-borough.png)<\/a>)<\/p>\n<p style=\"text-align: left\"><a href=\"https:\/\/i0.wp.com\/studentwork.prattsi.org\/infoshow\/wp-content\/uploads\/sites\/2\/2016\/10\/Picture1.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-5300 aligncenter\" src=\"https:\/\/i0.wp.com\/studentwork.prattsi.org\/infoshow\/wp-content\/uploads\/sites\/2\/2016\/10\/Picture1-620x450.png?resize=620%2C450\" alt=\"picture1\" width=\"620\" height=\"450\" \/><\/a><\/p>\n<p style=\"text-align: left;padding-left: 30px\">Visualization #2 (Figure 2) was also similar to what I had in mind, as it had restaurant data, though I was not focusing on<\/p>\n<p style=\"text-align: left\">violations in my visualization. I wound up using the bar chart format though they were oriented horizontally instead of<\/p>\n<p style=\"text-align: left\">vertically. I stayed away from including the violations (detailed in the NYC open data site), as there are over 20 different<\/p>\n<p style=\"text-align: left\">infractions, and their associated descriptions. Representing that data in a way people could understand seemed challenging, at<\/p>\n<p style=\"text-align: left\">first glance. The violation descriptions were very wordy, so presenting them would have altered my design, as well as the focus<\/p>\n<p style=\"text-align: left\">of the visualization. A legend would be needed to help readers decode the violations and what they meant.<\/p>\n<p style=\"text-align: left\">(Figure 2, below. Source: <a href=\"https:\/\/www.linkedin.com\/pulse\/nyc-restaurant-health-grades-visualizing-results-john-bencina\">https:\/\/www.linkedin.com\/pulse\/nyc-restaurant-health-grades-visualizing-results-john-bencina<\/a>)<\/p>\n<p style=\"text-align: left\"><a href=\"https:\/\/i0.wp.com\/studentwork.prattsi.org\/infoshow\/wp-content\/uploads\/sites\/2\/2016\/10\/Picture2.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-5302 aligncenter\" src=\"https:\/\/i0.wp.com\/studentwork.prattsi.org\/infoshow\/wp-content\/uploads\/sites\/2\/2016\/10\/Picture2-620x272.png?resize=620%2C272\" alt=\"picture2\" width=\"620\" height=\"272\" \/><\/a><\/p>\n<p style=\"text-align: left;padding-left: 30px\">Visualization #3 (Figure 3) was more of a hypothetical idea, in the vein of \u201cthis could also work in a map format, but I\u2019m<\/p>\n<p style=\"text-align: left\">not sure how to execute it\u201d. It has a great deal of data, that may take someone a bit of time to process, as it is rather complex,<\/p>\n<p style=\"text-align: left\">not only in colors, but also in how it presents the data. As I was looking to create something simpler, the visualization below did<\/p>\n<p style=\"text-align: left\">not quite fit the bill.<\/p>\n<p style=\"text-align: left\">(Figure 3, below. Source http:\/\/opendatabits.com\/nyc-restaurant-inspections-results-open-data\/)<\/p>\n<p style=\"text-align: left\"><a href=\"https:\/\/i0.wp.com\/studentwork.prattsi.org\/infoshow\/wp-content\/uploads\/sites\/2\/2016\/10\/Picture-3.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-5303 aligncenter\" src=\"https:\/\/i0.wp.com\/studentwork.prattsi.org\/infoshow\/wp-content\/uploads\/sites\/2\/2016\/10\/Picture-3-620x462.png?resize=620%2C462\" alt=\"picture-3\" width=\"620\" height=\"462\" \/><\/a><\/p>\n<p style=\"text-align: left;padding-left: 30px\">To create the visualization, I used Tableau Public 9.3, MS Excel, and Firefox web browser for conducting data searches. The<\/p>\n<p style=\"text-align: left\">data set came from the NYC open data site, focusing on <a href=\"https:\/\/data.cityofnewyork.us\/Health\/DOHMH-New-York-City-Restaurant-Inspection-Results\/43nn-pn8j\">restaurants<\/a> in particular. Looking for information, I had located other<\/p>\n<p style=\"text-align: left\">data sets, including one on commuting times and census areas, but it seemed too complex to work with, so it was not used.<\/p>\n<p style=\"text-align: left\">Restaurants seemed like a good idea, as most everyone goes out to eat at some point.<\/p>\n<p style=\"text-align: left;padding-left: 30px\">Method-wise, I started looking at NYC open data and other sites to get a feel for what was out there. Some looked good,<\/p>\n<p style=\"text-align: left\">but did not pan out for various reasons: not enough data, or uncertainty around what exactly I would do with the data. The<\/p>\n<p style=\"text-align: left\">commuting time and census areas data had some issues: different years measured, census areas changed over time, which<\/p>\n<p style=\"text-align: left\">seemed like it would take a fair amount of reconciliation to get something usable.<\/p>\n<p style=\"text-align: left\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Looking at restaurant data, I drafted a few exploratory questions (mentioned above) to frame what to look for once I<\/p>\n<p style=\"text-align: left\">found what appeared to be a solid data set. Ultimately, my questions were relatively simple, quantitative ones. I used Excel to<\/p>\n<p style=\"text-align: left\">download and filter data to show Manhattan (overall) as well as ZIP 10036, to see what was available.<\/p>\n<p style=\"text-align: left\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 The Department of Health <a href=\"http:\/\/www1.nyc.gov\/assets\/doh\/downloads\/pdf\/rii\/how-we-score-grade.pdf\">grading schedule<\/a>\u00a0 details the violations and associated points, as well as the point thresholds<\/p>\n<p style=\"text-align: left\">for \u2018A\u2019, \u2018B\u2019, and \u2018C\u2019 grades. Note: No seemingly reliable information was found for meanings of Grade \u2018P\u2019 and Grade \u2018Z\u2019<\/p>\n<p style=\"text-align: left\">restaurants, so they are not addressed in the visualizations.<\/p>\n<p style=\"text-align: left\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Working with Tableau, I tried different variations on the data to get a feel for what the visualizations would look like.<\/p>\n<p style=\"text-align: left\">Several of them were similar, with minor revisions, such as filtering out cells with null data. The most detailed was the bar chart<\/p>\n<p style=\"text-align: left\">breaking down the <a href=\"https:\/\/public.tableau.com\/profile\/tony.volpe#!\/vizhome\/AllRestaurantsByZip\/Sheet3\">grades by zip code,<\/a> in terms of volume of data presented.<\/p>\n<p style=\"text-align: left\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 In terms of results, data available as of September 17, 2016, showed 336 restaurants with an \u2018A\u2019 grade in 10036. Looking<\/p>\n<p style=\"text-align: left\">at data from 2012 to 2015, the number of \u2018A\u2019 grade restaurants increased from 9 in 2012 (the first year in which restaurant<\/p>\n<p style=\"text-align: left\">grades were used), to 235 in 2013, up to a high point of 451 in 2015.<\/p>\n<p style=\"text-align: left\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Grade \u2018B\u2019 restaurants in 10036 showed a different pattern. 2012 had no establishments with \u2018B\u2019 grades. 2013 had 56,<\/p>\n<p style=\"text-align: left\">2014 had 71, dipping slightly in 2015 to 69, and falling off in 2016 to a total of 38 with a \u2018B\u2019 grade.<\/p>\n<p style=\"text-align: left\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Grade \u2018C\u2019 establishments in 10036 peaked in 2013, with 40. Subsequent years showed a decline \u2013 2014, with 29, 2015<\/p>\n<p style=\"text-align: left\">had 27, and 2016 had only 5.<\/p>\n<p style=\"text-align: left\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 In ZIP 10036, the \u2018A\u2019 grade establishment decline was rather large \u2013 over 100 fewer restaurants from 2015 to 2016. This<\/p>\n<p style=\"text-align: left\">could be <em>possibly<\/em> attributed to establishments closing, or not being inspected in 2016, though further research would be needed<\/p>\n<p style=\"text-align: left\">to compare 2015 data to 2016. One thing to consider would be the number of restaurants open in 2015 versus 2016, to<\/p>\n<p style=\"text-align: left\">determine if there are any trends in terms of openings or closings. Additionally, 2016 is not yet complete, and the data reflected<\/p>\n<p style=\"text-align: left\">is only through September, not a full calendar year.<\/p>\n<p style=\"text-align: left\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 The number of lower-graded (B and C) restaurants declined after 2014. That decline could <em>possibly<\/em> be attributed to<\/p>\n<p style=\"text-align: left\">restaurants becoming used to the inspection process, or establishments closing for various reasons (redevelopment, rent<\/p>\n<p style=\"text-align: left\">increases), that are beyond the scope of this visualization. Without having a baseline of sorts, and different data than what was<\/p>\n<p style=\"text-align: left\">used here, making anything other than a semi-educated guess is difficult.<\/p>\n<p style=\"text-align: left\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Future research could include looking at what restaurants were open in one year versus another for a specific time<\/p>\n<p style=\"text-align: left\">period [September 1, 2015 to August 31, 2016 for example], to get a feel for what is behind the decrease of \u2018A\u2019 rated places in<\/p>\n<p style=\"text-align: left\">2016, in ZIP 10036. Is it because places have closed? Have they not been re-inspected? Have their grades declined over that<\/p>\n<p style=\"text-align: left\">year?<\/p>\n<p style=\"text-align: left\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Other areas to investigate include what were the most common violations for a given ZIP, or borough. That could be<\/p>\n<p style=\"text-align: left\">conducted with the existing data set. Though whether or not one would really want to know is open for debate.<\/p>\n<p>&nbsp;<\/p>\n<p><u>Resources<\/u><\/p>\n<p>Links to Visualizations, Data Sources, and Department of Health Inspection Scoring<\/p>\n<p>Visualization #1 <a href=\"https:\/\/public.tableau.com\/profile\/tony.volpe#!\/vizhome\/Lab2_64\/Sheet1\">https:\/\/public.tableau.com\/profile\/tony.volpe#!\/vizhome\/Lab2_64\/Sheet1<\/a><\/p>\n<p>Restaurant Grades and Inspection Dates (ZIP 10036)<\/p>\n<p>Visualization #2<\/p>\n<p><a href=\"https:\/\/public.tableau.com\/profile\/tony.volpe#!\/vizhome\/AllRestaurantsByZip\/Sheet3\">https:\/\/public.tableau.com\/profile\/tony.volpe &#8211; !\/vizhome\/AllRestaurantsByZip\/Sheet3<\/a><\/p>\n<p>Grades and Inspection Dates for all restaurants in Manhattan<\/p>\n<p>NYC Restaurant Data<\/p>\n<p><a href=\"https:\/\/data.cityofnewyork.us\/Health\/DOHMH-New-York-City-Restaurant-Inspection-Results\/43nn-pn8j\">https:\/\/data.cityofnewyork.us\/Health\/DOHMH-New-York-City-Restaurant-Inspection-Results\/43nn-pn8j<\/a><\/p>\n<p>Department of Health Restaurant Scoring<\/p>\n<p><a href=\"http:\/\/www1.nyc.gov\/assets\/doh\/downloads\/pdf\/rii\/how-we-score-grade.pdf\">http:\/\/www1.nyc.gov\/assets\/doh\/downloads\/pdf\/rii\/how-we-score-grade.pdf<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For this visualization, I started with noticing letter grades in windows of restaurants. Using NYC open data site, initial lines of inquiry included questions such as \u201cWhich parts of Manhattan had the most restaurants with \u2018B\u2019 or lower?\u201d, and \u201cWhich restaurants in Hell\u2019s Kitchen had the best grades?\u201d, and \u201cHow many grade \u2018A\u2019 restaurants are&hellip;<\/p>\n","protected":false},"author":432,"featured_media":5298,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"coauthors":[],"class_list":["post-5299","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visualization"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paBdcV-1nt","_links":{"self":[{"href":"https:\/\/studentwork.prattsi.org\/infovis\/wp-json\/wp\/v2\/posts\/5299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/studentwork.prattsi.org\/infovis\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/studentwork.prattsi.org\/infovis\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/studentwork.prattsi.org\/infovis\/wp-json\/wp\/v2\/users\/432"}],"replies":[{"embeddable":true,"href":"https:\/\/studentwork.prattsi.org\/infovis\/wp-json\/wp\/v2\/comments?post=5299"}],"version-history":[{"count":0,"href":"https:\/\/studentwork.prattsi.org\/infovis\/wp-json\/wp\/v2\/posts\/5299\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/studentwork.prattsi.org\/infovis\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/studentwork.prattsi.org\/infovis\/wp-json\/wp\/v2\/media?parent=5299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/studentwork.prattsi.org\/infovis\/wp-json\/wp\/v2\/categories?post=5299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/studentwork.prattsi.org\/infovis\/wp-json\/wp\/v2\/tags?post=5299"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/studentwork.prattsi.org\/infovis\/wp-json\/wp\/v2\/coauthors?post=5299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}