View source: R/makeWeekdayTimePlot.R
makeWeekdayTimePlot | R Documentation |
'makeWeekdayTimePlot' returns a plot which shows yVar by weekday, time, compareYear and plotPeriod (assumed to be lockdown). Assumes this is the date aligned data. Unlike makeWeekdayPlot this plots the proportion of the value (not the absolute value) within the categories. This helps to see proportional change.
makeWeekdayTimePlot(dt, xVar, yVar, yForm = "abs", yLab = "y Lab", yDiv = 1)
dt |
the data |
xVar |
the x axis - probably days of the week but you can be creative (needs to be a factor) |
yVar |
the variable you want to plot |
yForm |
whether you want an abs(olute) (default) or a prop(ortional) plot |
yLab |
the label for the y axis |
yDiv |
the value you want to divide yVar by to make the y axis more sensible. Default = '1' |
a plot
Ben Anderson, b.anderson@soton.ac.uk
Other plot:
addLockdownRect()
,
createDailyMeanComparePlot()
,
createDailyPcComparePlot()
,
createRecentDateTimePlot()
,
createRecentHalfHourlyProfilePlot()
,
makeWeekdayPlot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.