Description Usage Arguments Value See Also Examples
View source: R/amf_plot_datasummary.R
This function visualizes the BASE data summary for
selected AmeriFlux sites and variables. This is a wrapper around
amf_summarize_data
. However, it is strongly advised to
subset either sites or variables for faster processing and better
visualization.
1 2 3 4 5 6 7 8 |
data_sum |
A data frame with following 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. |
show_cluster |
Logical, whether showing clustering (dendrogram) of site-variables. The default is FALSE. |
scale |
Logical, whether the values should be centered and scaled among site-variables. The default is FALSE. |
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 19 20 21 22 23 24 25 | ## Not run:
# plot data summary for selected variables at two sites
amf_plot_datasummary(site_set = c("US-CRT", "US-WPT"),
var_set = c("H", "LE", "NETRAD"))
# plot data summary for FCH4 at all sites, and show
# clustering among sites
amf_plot_datasummary(var_set = "FCH4",
show_cluster = TRUE)
# plot data summary for TA at all grassland sites,
# and show clustering among sites
sites <- amf_site_info()
sites <- subset(sites, IGBP == "CRO")
amf_plot_datasummary(site_set = sites$SITE_ID,
var_set = "TA",
show_cluster = TRUE)
# normalize TA among sites
amf_plot_datasummary(site_set = sites$SITE_ID,
var_set = "TA",
show_cluster = TRUE,
scale = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.