View source: R/plotSubstrate.r
plotSubstrate | R Documentation |
Plot PAWMAP substrate data
plotSubstrate(substrate, dfm = NULL, load = TRUE, path = NULL)
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 |
A ggplot dot plot of the substrate data plotted vs. percent riffles, with points above relevant criteria highlighted and labeled
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.