Source file ⇒ /Users/sambamamba/Stat 133 Stuff/Lab 3 Graph Assignment.Rmd

Part I

Answer these questions:

What glyphs are used?

What are the aesthetics for those glyphs?

Which variable is mapped to each aesthetic?

Which variable, if any, is used for faceting?

What are the scales?

What variables make up the frame:

What are the guides?

Write down what the glyph-ready dataframe looks like.

Quantiles 1971 2011
Wealthiest Fifth 6% 9%
Next Fifth 10% 19%
Middle Fifth 13% 29%
Second Poorest Fifth 19% 46%
Poorest Fifth 42% 114%

Part 2

Output A flights1 %>% + select(carrier, distance, dep_delay, origin) %>% + arrange(distance)

Output B flights1 %>% + filter(carrier == “UA”)

Output C flights1 %>% + select(carrier, distance, dep_delay, origin) %>% + head(2)

Output D flights1 %>% + summarise(total=mean(dep_delay))

Output E flights1 %>% + select(carrier, distance)