7.4 Simple Line Plot +

Let us modify the previous graph.

  • scale_x_date() function from scales package can be used to reformat dates.

  • theme_minimal() is a function and it removes all background elements and reduces the axis lines and ticks to a minimum.