plotSubstrate: Plot PAWMAP substrate data

View source: R/plotSubstrate.r

plotSubstrateR Documentation

Plot PAWMAP substrate data

Description

Plot PAWMAP substrate data

Usage

plotSubstrate(substrate, dfm = NULL, load = TRUE, path = NULL)

Arguments

substrate

plot "fines" or "gravel"?

dfm

The data frame containing the variable

load

should the data be loaded from a file?

path

path for data if load=TRUE

Value

A ggplot dot plot of the substrate data plotted vs. percent riffles, with points above relevant criteria highlighted and labeled

Examples

num <- length(stationInfo$site_identifier)
dfm <- data.frame(site_identifier=stationInfo$site_identifier,
                   pct_ri=runif(num, 0, 100),
                   pct_fn=runif(num, 0, 60),
                   pct_grav=runif(num, 0, 60))
dfm <- mergeStatInfo(dfm)
plotSubstrate('fines', dfm)
plotSubstrate('fines', dfm)

PDXChris/pmtools documentation built on March 26, 2024, 8:13 a.m.