createRecentHalfHourlyProfilePlot: Creates a half-hourly profile plot by dayfrom the data.table...

View source: R/createRecentHalfHourlyProfilePlot.R

createRecentHalfHourlyProfilePlotR Documentation

Creates a half-hourly profile plot by dayfrom the data.table given

Description

'createRecentHalfHourlyProfilePlot' returns a plot which plots yVar by time of day for each day. Assumes rDateTimeUTC exists.

Usage

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

Arguments

dt

the data

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'

start

start date of plot

end

end date of plot

dateTimeVar

the dateTime variable to use (allows for aligned dateTimes etc). Default = 'rDateTimeUTC'

Author(s)

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

See Also

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


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