plotHab_ByWat: Plot PAWMAP habitat data by watershed.

View source: R/plotHab_ByWat.r

plotHab_ByWatR Documentation

Plot PAWMAP habitat data by watershed.

Description

Plot PAWMAP habitat data by watershed.

Usage

plotHab_ByWat(dfm, vbl, add.wat = TRUE)

Arguments

dfm

The data frame containing the variable

vbl

the field containing the variable to plot

add.wat

Should a field designating watershed be added? (Based on station #)

Value

A ggplot box plot of the variable by watershed

Examples

library(ggplot2)
## NEED TO UPDATE
d <- data.frame(site_identifier=unique(stationInfo$site_identifier), metric_code='xcl',
                 result=rnorm(length(stationInfo$site_identifier)))
p <- plotHab_ByWat(d, 'result')
p + ggtitle('Large Riparian Canopy - Generated Data for Example\n')

PDXChris/pmtools documentation built on July 18, 2024, 7:32 a.m.