Data Description

This data set contains information about the locations in NYC where individuals can get a flu shot. This data was collected by NYC DOHMH and is hosted through NYC OpenData. You can view the data set page here. Each location where people can obtain an influenza vaccine is listed along with business name, location, and whether they accept insurance, walk-in appointments, or vaccinate children.

We will start by importing and tidying the data set.

flu_vax = 
  GET("https://data.cityofnewyork.us/resource/w9ei-idxz.csv") %>% 
  content("parsed")

vax_tidy = 
  flu_vax %>% 
  select(objectid, facility_name, walk_in, insurance, children, borough, zip_code, latitude, longitude) %>% 
  mutate(borough = str_to_title(borough))

Distribution of Vaccination Sites

First, let’s examine the breakdown of locations by borough.

vax_tidy %>% 
  group_by(borough) %>% 
  count() %>% 
  knitr::kable()
borough n
Bronx 117
Brooklyn 216
Manhattan 310
Queens 189
Staten Island 52
Yonkers 1

Unsurprisingly, Manhattan has the greatest number of vaccination locations. Staten Island has the fewest of the 5 boroughs, and one location recorded is in Yonkers, just north of the city border.

Let’s look at the spatial distribution of locations using plotly.

vax_plotly = 
  vax_tidy %>% 
  mutate(text_label = str_c(facility_name, "\nZip Code: ", zip_code)) %>% 
  plot_ly(
    x = ~longitude, y = ~latitude, color = ~borough, colors = "magma",
    text = ~text_label, alpha = 0.7, type = "scatter", mode = "markers"
  ) 

vax_plotly

That’s pretty helpful, but we can drop the data onto a real map using leaflet.

vax_leaf = 
  vax_tidy %>% 
  mutate(text_label = str_c(facility_name, ", ", zip_code)) %>%
  leaflet() %>% 
  addProviderTiles(providers$CartoDB.Positron) %>% 
  addCircleMarkers(lat = ~latitude, lng = ~longitude, radius = 0.1, 
                   label = ~text_label)

vax_leaf

In examining the map, it actually appears that there is not much of New York that isn’t in proximity to at least one location that offers flu vaccination. Some areas are more sparse than others, including East Queens and central Staten Island, but overall there appears to be a good spread of vaccination sites across the 5 boroughs.

Of all locations, 100% accept walk-in visits, 100% accept insurance, and 9.15% vaccinate children. Unfortunately, the data dictionary on NYC OpenData is inaccurate, so we do not know whether children means that flu vaccinations are administered to children at a location, or if they also administer other childhood vaccinations (like TDAP, MMR, etc).

This data is important because, perhaps obviously, individuals cannot be vaccinated if there are not clinics or other vendors nearby them to deliver vaccines. It is also important that many of the vendors are drug or convenience stores, so individuals can be vaccinated without needed to make an appointment at their primary care physician or visit a medical clinic, increasing access.