custom_pm25TimeseriesScales: PWFSL PM2.5 timeseries scales

Description Usage Arguments

View source: R/custom_pm25TimeseriesScales.R

Description

Add PWFSL-style x-axis and y-axis scales suitable for a timeseries plot showing PM2.5 data.

Usage

1
2
3
custom_pm25TimeseriesScales(data = NULL, startdate = NULL,
  enddate = NULL, ylim = NULL, timezone = NULL, xlab = NULL,
  yexp = c(0.05, 0), xexp = c(0, 0.05), ...)

Arguments

data

pm25 timeseries data. Should match the default dataset of the plot

startdate

Desired start date (integer or character in ymd format or POSIXct).

enddate

Desired end date (integer or character in ymd format or POSIXct).

ylim

custom y-axis limits. This function will apply a default limit depending on the data.

timezone

Timezone for x-axis scale. If NULL and only one timezone present in the data, the data timezone will be used. If NULL and multiple timezones present, the default is UTC.

xlab

Custom xlab. If NULL a default xlab will be generated.

yexp

Vector of range expansion constants used to add some padding around the data on the y-axis, to ensure that they are placed some distance away from the axes.

xexp

Vector of range expansion constants used to add some padding around the data on the x-axis, to ensure that they are placed some distance away from the axes.

...

Additional arguments passed on to custom_datetimeScale.


MazamaScience/PWFSLSmokePlots documentation built on Oct. 11, 2019, 11:03 p.m.