plotBio_InWat: Plot PAWMAP biological metrics within a selected watershed.

View source: R/plotBio_InWat.r

plotBio_InWatR Documentation

Plot PAWMAP biological metrics within a selected watershed.

Description

Plot PAWMAP biological metrics within a selected watershed.

Usage

plotBio_InWat(dfm, vbl, wat, bio = c("bugs", "birds", "fish"), ...)

Arguments

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)

Value

A ggplot dot plot of the Macroinvertebrate Observed/Expected scores within a watershed

Examples

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')

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