View source: R/createRecentDateTimePlot.R
createRecentDateTimePlot | R Documentation |
'createRecentDateTimePlot' returns a plot which plots yVar by dateTime and adds lockdown annotations. This assumes users pass in the aligned-date data ('dateFixed').
createRecentDateTimePlot( dt, dateTime, yVar, yCap, yDiv = 1, lockDownStart, lockDownEnd, start = as.Date("2020-01-01"), end = lubridate::today() )
dt |
the data |
dateTime |
the dateTime variable to use (allows for aligned dateTimes and for other timezones etc etc). |
yVar |
the variable you want to plot |
yCap |
the caption for the y axis |
yDiv |
the value you want to divide yVar by to make the y axis more sensible. Default = '1' |
lockDownStart |
date for start of lockdown rectangle annotation |
lockDownEnd |
date for end of lockdown rectangle annotation |
start |
the start date for the plot |
end |
end date for the plot |
Ben Anderson, b.anderson@soton.ac.uk
Other plot:
addLockdownRect()
,
createDailyMeanComparePlot()
,
createDailyPcComparePlot()
,
createRecentHalfHourlyProfilePlot()
,
makeWeekdayPlot()
,
makeWeekdayTimePlot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.