Draw time series with geom_line() , x-axis should represent time (as Date class, assuming there is no hour/minute/sec data) (link to Dates chapter) Some of the plots in the Dates chapter could be moved here
Ex. of multiple line charts, legend matching order of lines
Scale data to compare trends with different units
Secular trends
Showing trends with geom_smooth(), changing the smoothing parameter
Seasonal trends
Facet on season (day of week, day of month etc.)
Show frequency of data with geom_point() in addition to geom_line()
Draw time series with
geom_line()
, x-axis should represent time (as Date class, assuming there is no hour/minute/sec data) (link to Dates chapter) Some of the plots in the Dates chapter could be moved hereEx. of multiple line charts, legend matching order of lines
Scale data to compare trends with different units
Secular trends Showing trends with
geom_smooth()
, changing the smoothing parameterSeasonal trends Facet on season (day of week, day of month etc.)
Show frequency of data with
geom_point()
in addition togeom_line()
Show gaps by setting values to
NA