shiny_hev | R Documentation |
The shiny_hev function launches a shiny app of:
If multiplot = TRUE, a multiplot plotly plot with: (i) a drop-down list to select the site of interest.
If multiplot = FALSE, a plotly plot with: (i) a drop-down list to select the site of interest, and (ii) a drop-down list to select which biol_metric to plot.
shiny_hev(data, sites_col, date_col, flow_stat, biol_metric, multiplot = TRUE)
data |
Data frame, containing the data to plot. |
sites_col |
Name of variable defining site ID. |
date_col |
Name of column containing time variable. |
flow_stat |
Flow statistics of interest; two should be chosen. |
biol_metric |
Biology metrics of interest; up to four can be chosen. |
multiplot |
If TRUE: a multiplot of up to four biology metrics is displayed; If FALSE: a single plot is displayed. Default = TRUE. |
Launches a shiny app containing an interactive time series plot of biology and flow data.
## Multi-panel plot
# shiny_hev(data = all_data,
# sites_col = "biol_site_id",
# date_col = "Year",
# flow_stat = c("Q10z", "Q95z"),
# biol_metric = c("WHPT_ASPT_OE", "LIFE_F_OE"),
# multiplot = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.