ggplot2
is a great tool for complex data visualization. Let’s practice it a bit!
Answers to these exercises are available here.
For each exercise, please replicate the given graph. Some exercises require additional data wrangling. If you obtained a different (correct) answer than those listed on the solutions page, please feel free to post your answer as a comment on that page.
Exercise 1
Fancy the iris
dot-plot.
Exercise 2
Faceted smoothing (iris
, once again).
- Work extensively with the ggplot package and its functionality
- Learn what visualizations exist for your specific use case
- And much more
Exercise 3
Tufte style mtcars
.
Exercise 4
mtcars
bubble-plot.
Exercise 5
Polar barplot of the mean diamond
price per cut and color.
Exercise 6
Economist style economics
time series. (Hint: you will need the ggthemes
package.)
Leave a Reply