plot-methods: Plot air quality data from an 'airData' object

Description Usage Arguments Examples

Description

Plots objects of class airData.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
plot(x, y, ...)

## S4 method for signature 'airData,missing'
plot(
  x,
  main = "Particulates",
  start = NA,
  end = NA,
  sub = paste0("Date: "),
  xlab = "Time of day",
  ylab1 = "Humidity",
  ylab2 = "Particulates (µg/m³)",
  zlab = "Temperature",
  legend = c("Humid", "Temp", "PM10", "PM2.5", "Humid > 70%", "< 50 µg/m³"),
  colors = c("blue", "red", "darkgreen", "purple", "#FFDDDD", "#DDFFDD"),
  ...
)

Arguments

x

An object of class airData, like returned by read.madavi().

...

Additional options applied to plot and lines.

main

Title of the plot.

start

Start time in POSIXct format, or as a character string supported by as.POSIXct. If missing all data is plotted.

end

End time in POSIXct format, or as a character string supported by as.POSIXct. If missing all data is plotted.

sub

Subtitle

xlab

A title for the x axis (time).

ylab1

A title for the upper y axis (humidity).

ylab2

A title for the lower y axis (fine dust).

zlab

A title for the upper z axis (temperature).

legend

Text for the plot legend describing humidity, temperature, PM10, PM2.5, humidity over 70%, and particle concentration below 50 µg/m³.

colors

Six color definitions used to plot humidity, temperature, PM10, PM2.5, humidity over 70%, and particle concentration below 50 µg/m³, respectively.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
x <- read.madavi(file.path("~","fine_dust_data"))
plot(
  x,
  start="2019-12-10 09:00:00",
  end="2019-12-10 22:00:00"
)

## End(Not run)

unDocUMeantIt/paRticulates documentation built on Jan. 20, 2020, 5:15 p.m.