knitr::opts_chunk$set(echo = TRUE)
library( prettyWater )
rasterFlow( site_id = '04085427' )

This package contains the function rasterFlow() for importing and plotting streamflow from a single streamgage in raster format.

Installation

devtools::install_github( "ssaxe-usgs/prettyWater" )

Examples

rasterFlow with default arguments (figure above)
library( prettyWater )
rasterFlow( site_id = '04085427' )
rasterFlow with lines at each year
library( prettyWater )
rasterFlow( site_id = '04085427',
            yearLines = T )
rasterFlow with contours
library( prettyWater )
rasterFlow( site_id = '04085427',
            contours = T )
rasterFlow returning raw NWIS streamflow data
library( prettyWater )
q <- rasterFlow( site_id = '04085427',
                 returnData = T )
head(q)


ssaxe-usgs/prettyWater documentation built on May 5, 2019, 1:32 a.m.