Question: This problem refers to the data provided in the nycflights 1 3 package. Airport codes for the three New York City airports can be computed

This problem refers to the data provided in the nycflights13
package. Airport codes for the three New York City airports can be computed from the
origin variable in the flights table packages using unique().
(1) Use the flights table compute average and median departure delays (as recorded
in the dep_delay variable) for each of the three New York City airports, omitting
missing values. Present the results as a nicely formatted table and comment on the
results.
(2) Use density plots to compare the distributions of the air time (as recorded in the
air_time variable) for flights originating from each of the three New York City airports.
What differences do you see?
There are several options for displaying the densities:
- a single plot, using color or fill and alpha to distinguish the distributions;
- a faceted plot with one density per facet (think about how to arrange the facets);
- a ridge line plot.
Consider all three approaches and comment on their advantages and disadvantages.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!