A test dataset containing 1980-2019 transit ridership for the three service boards that provide transit in Northeastern Illinois.

transit_ridership

Format

A tibble. 200 rows and 3 variables

year

Double. Year of data

system

Char. Name of system (includes CTA bus, CTA rail, Metra, Pace, and Pace ADA)

ridership

Double. Annual unlinked passenger trips in millions

Source

Regional Transportation Authority http://www.rtams.org/rtams/systemRidership.jsp

Examples

# A line graph
ggplot(transit_ridership,aes(x = year,y=ridership,group=system,color=system)) +
  geom_line(na.rm=TRUE)