Articles by The USGS OWI blog

Tol Color Schemes

September 23, 2018 | The USGS OWI blog

Introduction Choosing colors for a graphic is a bit like taking a trip down the rabbit hole, that is, it can take much longer than expected and be both fun and frustrating at the same time. Striking a balance between colors that look good to you and your audience is ...
[Read more...]

Furthest Water

September 20, 2018 | The USGS OWI blog

Finding the Location Furthest from Water in the Conterminous United States The idea for this post came a few months back when I received an email that started, “I am a writer and teacher and am reaching out to you with a question related to a piece I would like ...
[Read more...]

Beyond Basic R – Version Control with Git

August 23, 2018 | The USGS OWI blog

Depending on how new you are to software development and/or R programming, you may have heard people mention version control, Git, or GitHub. Version control refers to the idea of tracking changes to files through time and various contributors. Git is an example of a version control tool, and ... [Read more...]

Beyond Basic R – Mapping

August 15, 2018 | The USGS OWI blog

Introduction There are many different R packages for dealing with spatial data. The main distinctions between them involve the types of data they work with — raster or vector — and the sophistication of the analyses they can do. Raster data can be thought of as pixels, similar to an image, while ...
[Read more...]

Beyond Basic R – Data Munging

July 31, 2018 | The USGS OWI blog

What we couldn’t cover In the data cleaning portion of our Intro to R class, we cover a variety of common data manipulation tasks. Most of these were achieved using the package dplyr, including removing or retaining certain columns (select), filtering out rows by column condition (filter), creating new ...
[Read more...]

Maps with inlmisc

July 16, 2018 | The USGS OWI blog

Introduction This document gives a brief introduction to making static and dynamic maps using inlmisc, an R package developed by researchers at the United States Geological Survey (USGS) Idaho National Laboratory (INL) Project Office. Included with inlmisc is a collection of functions for creating high-level graphics, such as graphs, maps, ...
[Read more...]

Daily Streamflow Trend Analysis

May 28, 2018 | The USGS OWI blog

Introduction This document describes how to produce a set of graphics and perform the associated statistical tests that describe trends in daily streamflow at a single streamgage. The trends depicted cover the full range of quantiles of the streamflow distribution, from the lowest discharge of the year, through the median ...
[Read more...]

Groundwater levels across US affected by Mexico earthquake

September 11, 2017 | The USGS OWI blog

What happened? A magnitude 8.1 earthquake was measured in the Pacific region offshore Chiapas, Mexico at 04:49:21 UTC on September 8th 2017. Working in the Water Mission Area for the USGS, our Data Science Team was already hard at work polishing up water visualizations for the devastating Hurricane Harvey, as well as creating ...
[Read more...]

The Hydro Network-Linked Data Index

April 30, 2017 | The USGS OWI blog

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 ...
[Read more...]

The National Map Base Maps

April 11, 2017 | The USGS OWI blog

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 ... [Read more...]

Seasonal Analysis in EGRET

November 28, 2016 | The USGS OWI blog

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 ...
[Read more...]

The case for reproducibility

October 5, 2016 | The USGS OWI blog

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 ... [Read more...]

Using the dataRetrieval Stats Service

October 4, 2016 | The USGS OWI blog

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 ...
[Read more...]

EGRET plotFlowConc using ggplot2

July 12, 2016 | The USGS OWI blog

Marcus Beck (USEPA) Laura DeCicco (USGS-OWI) Introduction 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/...
[Read more...]
1 2

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)