View source: R/aimsdf-methods.R
plot.aimsdf | R Documentation |
Plotting options for aimsdf objects
## S3 method for class 'aimsdf'
plot(x, ..., ptype, pars)
x |
An object of class |
... |
Not used. |
ptype |
Type of plot. Can either be "time_series" or "map". |
pars |
Which parameters to plot? Only relevant if ptype is "time_series" |
Currently plots cannot be customised. Summary datasets can only be represented by maps.
An object of class ggplot
.
## Not run:
library(dataaimsr)
wdf <- aims_data("weather", api_key = NULL,
filters = list(site = "Yongala",
from_date = "2018-01-01",
thru_date = "2018-01-02"))
plot(wdf, ptype = "map")
plot(wdf, ptype = "time_series")
# summary-by- datasets can only return maps
sdf <- aims_data("temp_loggers", api_key = NULL,
summary = "summary-by-deployment")
plot(sdf, ptype = "map")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.