plotTimeSeries: Create a time series from a dataframe or output equivalent to...

Description Usage Arguments Value

View source: R/plotTimeSeries.R

Description

Create a time series from a dataframe or output equivalent to that from getLUMAdata.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
plotTimeSeries(
  allData,
  tickBreaks = NA,
  dateLabelFormat = NA,
  title = NA,
  SAVEplot = FALSE,
  SAVEname = NA,
  SAVEpath = NULL,
  SAVEsize = NA
)

Arguments

allData

The data to plot in the form output by getLUMAdata().

tickBreaks

How often ticks should appear on plots. e.g. 6 hours. See https://www.rdocumentation.org/packages/ggplot2/versions/1.0.0/topics/scale_x_datetime date_breaks for valid options.

dateLabelFormat

The format of date labels e.g. with Hour and Minute separated by : . See date_labels in link above for valid options.

title

The title of the plot. If not specified then a default will be generated based on information given.

SAVEplot

Boolean whether to save the plot.

SAVEname

The name of the plot if SAVEplot = TRUE

SAVEpath

The path to folder in which plot should be saved. Leave as null to save in current working directory.

SAVEsize

The size the save the image. This is a 3D vector consisting of h (height), w (width) and unit. See https://ggplot2.tidyverse.org/reference/ggsave.html for valid units.

Value

A time series for each variable.


Urban-Meteorology-Reading/analysisToolsLUMA documentation built on June 8, 2021, 6:29 p.m.