custom_pm25DiurnalScales: USFS AirFire PM2.5 diurnal scales

View source: R/custom_pm25DiurnalScales.R

custom_pm25DiurnalScalesR Documentation

USFS AirFire PM2.5 diurnal scales

Description

Add USFS AirFire-style x-axis and y-axis scales suitable for a plot showing PM2.5 data as a function of hour of the day.

Usage

custom_pm25DiurnalScales(
  monitor = NULL,
  ylim = NULL,
  xlab = NULL,
  ylab = "PM2.5 (µg/m3)",
  yexp = c(0.05, 0.05),
  xexp = c(0.05, 0.05),
  offsetBreaks = FALSE
)

Arguments

monitor

A mts_monitor object.Should match the default dataset of the plot.

ylim

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

xlab

Custom x-axis label. If NULL a default xlab will be generated.

ylab

Custam y-axis label.

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.

offsetBreaks

if TRUE, x-axis ticks and guides are offset by 0.5.


MazamaScience/AirMonitorPlots documentation built on May 8, 2024, 6:16 a.m.