ggplot_pm25Timeseries: Instantiate a pm25 timeseries ggplot

Description Usage Arguments Examples

View source: R/ggplot_pm25Timeseries.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
ggplot_pm25Timeseries(
  ws_data,
  startdate = NULL,
  enddate = NULL,
  timezone = NULL,
  ylim = NULL,
  base_size = 11,
  ...
)

Arguments

ws_data

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

startdate

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

enddate

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

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.

ylim

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

base_size

Base font size for theme

...

Additional arguments passed on to custom_datetimeScale.

Examples

1
2
3
4
ws_monitor <- PWFSLSmoke::Carmel_Valley
ggplot_pm25Timeseries(ws_monitor) +
  geom_point(shape = "square",
             alpha = .2)

MazamaScience/AirMonitorPlots documentation built on April 14, 2021, 3:12 a.m.