visualize_app {quadcleanR}R Documentation

Visualize cleaned data

Description

Using an interactive shiny app, visualize and explore cleaned quadrat data.

Usage

visualize_app(data, xaxis, yaxis)

Arguments

data

A data frame containing cleaned quadrat data.

xaxis

The xaxis variable column names found in data.

yaxis

The yaxis variable column names found in data.

Value

A shiny app launched in your browser.

Examples

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")
}


[Package quadcleanR version 1.1.0 Index]