311 Data Exploration

Introduction

This interactive Shiny RMarkdown document expands on the code created during our live coding session. The goal is to explore the NYC 311 complaints dataset using:

  • Borough selection
  • Adjustable number of top complaint types
  • A date-range filter
  • A bar chart of most frequent complaints
  • A time-series plot
  • A searchable data table
  • A summary statistic panel

All components update automatically based on user input.

data_311 <- nyc_311(limit = 10000)

# Convert created date into proper Date format
data_311$created_date <- as.Date(substr(data_311$created_date, 1, 10))

Interactive Inputs

to

Summary of Results

Top Complaint Types (Bar Chart)

Daily Complaint Volume (Time Series)

Fill Filtered Data Table