asdv_pm25Diurnal: Instantiate a pm25 diurnal ggplot (Clone from...

Description Usage Arguments

View source: R/fct_ggplots.R

Description

Create a plot using ggplot with default mappings and styling. Layers can then be added to this plot using ggplot2 syntax.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
asdv_pm25Diurnal(
  ws_data,
  startdate = NULL,
  enddate = NULL,
  timezone = NULL,
  ylim = NULL,
  shadedNight = TRUE,
  mapping = aes_(x = ~hour, y = ~pm25),
  base_size = 11,
  ...
)

Arguments

ws_data

Default dataset to use when adding layers. Must be either a ws_monitor object or ws_tidy object.

startdate

Desired startdate for data to include, in a format that can be parsed with parseDatetime.

enddate

Desired enddate for data to include, in a format that can be parsed with parseDatetime.

timezone

Timezone to use to set hours of the day

ylim

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

shadedNight

add nighttime shading based on of middle day in selected period

mapping

Default mapping for the plot

base_size

Base font size for theme

...

Additional arguments passed on to custom_pm25DiurnalScales.


MazamaScience/AirSensorDataViewer documentation built on April 2, 2021, 12:24 a.m.