Nothing
## ----setup, include = FALSE---------------------------------------------------
library(nycOpenData)
library(dplyr)
library(ggplot2)
## -----------------------------------------------------------------------------
data <- nyc_ha_violations()
head(data)
## -----------------------------------------------------------------------------
data %>%
count(boro_nm)
## -----------------------------------------------------------------------------
data %>%
count(boro_nm) %>%
ggplot(aes(x = boro_nm, y = n)) +
geom_col() +
labs(
title = "Number of NYCHA Violations by Borough",
x = "Borough",
y = "Number of Violations"
)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.