This package is NOT CURRENTLY supported.

Please consider using the NHDPlusTools package. A similar workflow that captures the functions of this package are described here:

Package Support

The Water Mission Area of the USGS supported the exploration of the development of the hydroMaps R-package. This package is not currently active.


Sunset date

There is no current funding for hydroMaps. Users should be aware that they use this package at their own risk.


To install the hydroMap package, first install the “remotes” package. Then run the following R code:


hydroMaps depends on the R packages sp,rgeos, and rgdal all of which require an external library gdal to be installed. See :

Create Interactive Graphs using Leaflet:

basins <- getBasin(sites)
flowLines <- getFlowLines(Range, streamorder = 5)

leaflet() %>% 
  addProviderTiles("CartoDB.Positron") %>% 
  setView(-78, 41, zoom = 6) %>%
  addPolygons(data=basins, weight=2, color = "grey") %>%
  addPolylines(data=flowLines, weight=1) %>%
                   color = "red",
                   fillOpacity = 0.8, opacity = 0.8,

Screen shot:


This software is in the public domain because it contains materials that originally came from the U.S. Geological Survey, an agency of the United States Department of Interior. For more information, see the official USGS copyright policy

Although this software program has been used by the U.S. Geological Survey (USGS), no warranty, expressed or implied, is made by the USGS or the U.S. Government as to the accuracy and functioning of the program and related program material nor shall the fact of distribution constitute any such warranty, and no responsibility is assumed by the USGS in connection therewith.

This software is provided “AS IS.”


USGS-R/hydroMap documentation built on June 5, 2020, 12:35 a.m.