View source: R/plotBio_InWat.r
plotBio_InWat | R Documentation |
Plot PAWMAP biological metrics within a selected watershed.
plotBio_InWat(dfm, vbl, wat, bio = c("bugs", "birds", "fish"), ...)
dfm |
The data frame containing the variable |
vbl |
the field containing the metric to plot |
wat |
the watershed to plot |
bio |
type of biological data to plot. Options: 'bugs', 'birds', 'fish' |
... |
Additional arguments to control aesthetic of plotted points (must be string) |
A ggplot dot plot of the Macroinvertebrate Observed/Expected scores within a watershed
library(ggplot2)
site_identifier <- unique(stationInfo$site_identifier[stationInfo$duration=='P'])
d <- data.frame(site_identifier=unique(site_identifier), metric_name='oep5',
watershed='Tryon Creek', result=rnorm(length(site_identifier)))
d <- mergeStatInfo(d)
p <- plotBio_InWat(d, 'result', 'Johnson Creek', 'bugs')
p + ggtitle('Macroinvertebrate Observed/Expected - Generated Data for Example\n')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.