Chapter 3 Plotting

R is capable of giving very nice graphical plots. We will go over the most popular package ggplot2 for drawing static graphics and dygraphs for dynamic graphs

Learning objectives:

  • Use ggplot2 to draw basic plots (scatter plot, boxplot, line chart, histogram, frequency polygon, and barchart)

  • Use ggtheme to improve appearance

  • Use dygraphs to draw interactive graphs