# ggplot Examples

Given this data frame,

Produce this plot:

Given the data frame d, generated in the way shown,

Produce this plot:

• I used aggregate and reorder. See this blog post about reordering factors to ensure the manufacturers in the plot are listed in order of highest hwy mpg first.
• I used melt after aggregate.