View source: R/visualize_app.R
visualize_app | R Documentation |
Using an interactive shiny app, visualize and explore cleaned quadrat data.
visualize_app(data, xaxis, yaxis)
data |
A data frame containing cleaned quadrat data. |
xaxis |
The xaxis variable column names found in |
yaxis |
The yaxis variable column names found in |
A shiny app launched in your browser.
year <- sample(x = seq(from = 2000, to = 2020, by = 1), 1000, replace = TRUE) site <- sample(x = c("site1", "site2", "site3", "site4", "site5"), 1000, replace = TRUE) transect <- sample(x = c("transect1", "transect2", "transect3", "transect4"), 1000, replace = TRUE) species <- sample(x = c("Acropora", "Gardineroseris", "Psammocora", "Leptastrea"), 1000, replace = TRUE) cover <- sample(x = seq(from = 0, to = 1, by = 0.01), 1000, replace = TRUE) coral <- data.frame(year, site, transect, species, cover) if (interactive()) { visualize_app(data = coral, xaxis = colnames(coral[,1:4]), yaxis = "cover") }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.