flight_delays: Flight delays for flights departing Newark airport in 2013

Description Usage Format Examples

Description

This is a subset of the flights dataset provided by the nycflights13 package. It has been filtered to contain only departures from "EWR" and it only contains the departure time and departure delay of each flight. Flights with delay time of NA have been removed.

Usage

1

Format

An object of class tbl_df (inherits from tbl, data.frame) with 117596 rows and 2 columns.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(lubridate)

# break points along the x axis
breaks_x <- c("0:00", "6:00", "12:00", "18:00", "24:00")

ggplot(flight_delays, aes(`departure time`, `departure delay (minutes)`)) + 
  geom_abline(slope = 0, intercept = 0, color="grey80") +
  geom_bin2d(bins = 50) +
  scale_fill_distiller(type = 'seq', palette = 'YlGnBu') +
  scale_x_time(breaks = hm(breaks_x),
               labels = breaks_x) +
  theme_half_open()

clauswilke/dviz.supp documentation built on Aug. 25, 2020, 2:12 a.m.