diff --git a/class-activity-3.Rmd b/class-activity-3.Rmd index d8dd1d6..8c10c5e 100644 --- a/class-activity-3.Rmd +++ b/class-activity-3.Rmd @@ -43,7 +43,9 @@ ggplot(mpg, aes(displ, hwy, color = class)) + Can you create a line graph using the "economics_long" data set that shows change over time in "value01" for different categories of "variable"? ```{r} - +ggplot(economics_long, aes(economics_long$value01, economics_long$date)) + + geom_line()+ + facet_grid(economics_long$variable~.) ``` If you would like to recreate the Minard graphic of Napoleon's Troops the code is below and the data is in this repo. @@ -62,6 +64,6 @@ last_plot() + scale_x_continuous("", limits = c(24, 39)) + scale_y_continuous("") + scale_colour_manual(values = c("grey50","red")) + - scale_size(to = c(1, 10)) + scale_size() ```