View source: R/plotHab_ByWat.r
plotHab_ByWat | R Documentation |
Plot PAWMAP habitat data by watershed.
plotHab_ByWat(dfm, vbl, add.wat = TRUE)
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 #) |
A ggplot box plot of the variable by watershed
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')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.