Description Usage Arguments Examples
Plots objects of class airData
.
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"),
...
)
|
x |
An object of class |
... |
Additional options applied to |
main |
Title of the plot. |
start |
Start time in POSIXct format,
or as a character string supported by |
end |
End time in POSIXct format,
or as a character string supported by |
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. |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.