createRecentDateTimePlot: Creates a half-hourly plot from the data.table given

View source: R/createRecentDateTimePlot.R

createRecentDateTimePlotR Documentation

Creates a half-hourly plot from the data.table given

Description

'createRecentDateTimePlot' returns a plot which plots yVar by dateTime and adds lockdown annotations. This assumes users pass in the aligned-date data ('dateFixed').

Usage

createRecentDateTimePlot(
  dt,
  dateTime,
  yVar,
  yCap,
  yDiv = 1,
  lockDownStart,
  lockDownEnd,
  start = as.Date("2020-01-01"),
  end = lubridate::today()
)

Arguments

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

Author(s)

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

See Also

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


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