Description Usage Arguments Value See Also Examples
View source: R/amf_plot_datayear.R
This function visualizes the BASE data availability for
selected AmeriFlux sites, variables, and years. This is a wrapper around
amf_list_data
. However, it is strongly advised to subset
the sites, variables, and/or years for faster processing and better
visualization.
1 2 3 4 5 6 7 |
data_aval |
A data frame with at least five columns:
If not specified, use |
site_set |
A scalar or vector of character specifying the target AmeriFlux Site ID (CC-Sss). If not specified, it returns all sites. |
var_set |
A scalar or vector of character specifying the target variables as in basename. See AmeriFlux pagehttps://ameriflux.lbl.gov/data/aboutdata/data-variables/#base for a list of variable names. If not specified, it returns all variables. |
nonfilled_only |
Logical, whether only showing non-filled variables, or both non- and gap-filled variables. The default is TRUE. |
year_set |
A scalar or vector of integers. If not specified, it plots only years with any available data in selected sites and variables |
An object of class 'plotly' from heatmaply
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
# plot data availability for all variables at a single site
# in all years
amf_plot_datayear(site_set = "US-CRT",
nonfilled_only = FALSE)
# plot data availability for non-filled FCH4 and WTD at all
# sites in all years
amf_plot_datayear(var_set = c("FCH4", "WTD"),
nonfilled_only = TRUE)
# plot data availability for non-filled FCH4 at all sites
# in 2018-2020
amf_plot_datayear(var_set = "FCH4",
year_set = c(2018:2020),
nonfilled_only = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.