Blog Archives

The Hydro Network-Linked Data Index

April 30, 2017
By
The Hydro Network-Linked Data Index

Introduction The Hydro Network-Linked Data Index (NLDI) is a system that can index data to NHDPlus V2 catchments and offers a search service to discover indexed information. Data linked to the NLDI includes active NWIS stream gages, water quality portal sites, and outlets of HUC12 watersheds. The NLDI is a core product of the

Read more »

The National Map Base Maps

April 11, 2017
By

A number of map services are offered through The National Map (TNM). There are no use restrictions on these services. However, map content is limited to the United States and Territories. This post explains how to integrate TNM services within your own interactive web map using Leaflet for R. R packages required for this tutorial include leaflet, rgdal, and dataRetrieval. Install the...

Read more »

Seasonal Analysis in EGRET

November 28, 2016
By
Seasonal Analysis in EGRET

Introduction This document describes how to obtain seasonal information from the R package EGRET - Exploration and Graphics for RivEr Trends: An R-package for the analysis of long-term changes in water quality and streamflow, including the water-quality method Weighted Regressions on Time, Discharge, and Season (WRTDS) For example, we might want to know the fraction of the load that takes...

Read more »

Calculating Moving Averages and Historical Flow Quantiles

October 24, 2016
By
Calculating Moving Averages and Historical Flow Quantiles

This post will show simple way to calculate moving averages, calculate historical-flow quantiles, and plot that information. The goal is to reproduce the graph at this link: PA Graph. The motivation for this post was inspired by a USGS colleague that that is considering creating these type of plots in R. We thought this plot provided an especially...

Read more »

The case for reproducibility

October 5, 2016
By

Science is hard. Why make it harder? Scientists and researchers spend a lot of time on data preparation and analysis, and some of these analyses are quite computationally intensive. The amount of time required to conduct an analysis grows for the increased complexity of calculations, amount of data, and number of datasets that will be analyzed. Many researchers use spreadsheets...

Read more »

Using the dataRetrieval Stats Service

October 4, 2016
By
Using the dataRetrieval Stats Service

Introduction This script utilizes the new dataRetrieval package access to the USGS Statistics Web Service. We will be pulling daily mean data using the daily value service in readNWISdata, and using the stats service data to put it in the context of the site’s history. Here we are retrieving data for July 12th in the Upper Midwest, where a...

Read more »

Accessing LOCA Downscaling Via OPeNDAP and the Geo Data Portal with R.

September 12, 2016
By
Accessing LOCA Downscaling Via OPeNDAP and the Geo Data Portal with R.

Introduction In this example, we will use the R programming language to access LOCA data via the OPeNDAP web service interface using the ncdf4 package then use the geoknife package to access LOCA data using the Geo Data Portal as a geoprocessing service. More examples like this can be found at the Geo Data Portal wiki. A...

Read more »

Using Leaflet and htmlwidgets in a Hugo blog post

August 22, 2016
By

We are excited to use many of the JavaScript data visualizations in R using the htmlwidgets package in future blog posts. Having decided on using Hugo, one of our first tasks was to figure out a fairly straightforward way to incorporate these widgets. This post describes the basic process to get a basic leaflet map in...

Read more »

EGRET plotFlowConc using ggplot2

July 12, 2016
By
EGRET plotFlowConc using ggplot2

Marcus Beck (USEPA) Laura DeCicco (USGS-OWI) Introduction EGRET is an R-package for the analysis of long-term changes...

Read more »

Using Random Residuals for Censored Data in EGRET

June 14, 2016
By
Using Random Residuals for Censored Data in EGRET

EGRET is an R-package for the analysis of long-term changes in water quality and streamflow, and includes the water-quality method Weighted Regressions on Time, Discharge, and Season (WRTDS). It is available on CRAN. More information can be found at https://github.com/USGS-R/EGRET. Introduction When censored data are present in a water quality data set, depicting them in any type of scatter plot is...

Read more »

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)