plotWSB: Basic plot of WSB based on huc

Description Usage Arguments Examples

Description

Basic plot

Usage

1
plotWSB(sites, col = "#A8A8A850", mapRange = NA)

Arguments

sites

character vector of site ids

col

for basin fill

mapRange

vector of map limits (min long, max long, min lat, max lat)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
sites <- c("01137500","01491000", "01573000", "01576000","06485500")
path <- system.file("extdata", package="hydroMap")
siteInfo <- readRDS(file.path(path,"siteInfo.rds"))
png("test.png")
plotWSB(sites)
points(siteInfo$dec_long_va, siteInfo$dec_lat_va, pch=20, col="red", cex=1)
dev.off()

plotWSB(sites[4], mapRange=c(-80,-74, 38, 46))
points(siteInfo$dec_long_va[4], siteInfo$dec_lat_va[4], pch=20, col="red", cex=1)

jread-usgs/hydroMaps documentation built on May 20, 2019, 10:46 a.m.