makeWeekdayTimePlot: Creates a plot by weekday from the data.table given

View source: R/makeWeekdayTimePlot.R

makeWeekdayTimePlotR Documentation

Creates a plot by weekday from the data.table given

Description

'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.

Usage

makeWeekdayTimePlot(dt, xVar, yVar, yForm = "abs", yLab = "y Lab", yDiv = 1)

Arguments

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'

Value

a plot

Author(s)

Ben Anderson, b.anderson@soton.ac.uk

See Also

Other plot: addLockdownRect(), createDailyMeanComparePlot(), createDailyPcComparePlot(), createRecentDateTimePlot(), createRecentHalfHourlyProfilePlot(), makeWeekdayPlot()


CfSOtago/gridCarbon documentation built on April 5, 2022, 6:46 a.m.