R data structures for Chemical Modeling

by on August 25, 2017

In the past few months I’ve done some work on PHREEQC modeling in R, as well as a whole lot of XRF data work that required converting what seemed like an ungodly number of molecular concentrations (e.g. Al2O3) into elemental concentrations (Al). Both of these highlighted a need for chemical data structures in R such […]

Environment Canada HYDAT data in R

by on July 21, 2017

The HYDAT database contains over 1 GB of hydrological observation data collected by Environment Canada. The database is freely available from the Environment Canada website, however extracting data can be difficult. Recently a student in our lab was working with this data, so I adapted some previously shotty code that cleaned up the somewhat difficult […]

Major ggspatial updates

by on March 28, 2017

I took the day to update ggspatial an old R project that was never published to CRAN. The idea is to create ggplot layer() calls from sp Spatial* objects using a consistent interface. Last year I wrote a blog post about how that might work, and while the usage hasn’t changed much, the implementation is […]

Programmer-friendly names come to rclimateca!

by on February 27, 2017

The most frustrating thing about working with the previous version of the rclimteca package is the column headers given by Environment Canada. In R it is possible to refer to these columns using the backticks or the double bracket, but to save on typing I introduced a predictable column renaming function that removes the hard-to-type […]

Canada Weather 2.0

by on November 13, 2016

I’m happy to announce that after a week-long struggle with the intricacies of the Android AppWidget framework, I’ve just released a new version of Canada Weather. Over the past year requests have piled up involving more flexibility for the widget, better use of space on the widget, antiquated user interface, no option for sound on […]

Spatial data in ggplot2

by on July 12, 2016

I recently figured out how to use the ggplot2 framework to plot raster data, which led me to write a package extending ggplot2 for more convenient spatial data geometries. Ever wanted a geom_spatial() for those SpatialPolygonsDataFrames and RasterBricks you’ve got kicking around? Well…maybe you did or didn’t, but the ggspatial package is now here for […]

Mapping R Package Updates

by on April 12, 2016

The past few months haven’t been particularly productive on the R package front (I’ve mostly been using R for plotting lakes data), but small updates here and there have led to a bunch of exciting new features in the prettymapr, rosm, and rcanvec packages. Things like geocoding, finding a bounding box containing multiple queries, exporting […]

WP Facebook Like Send & Open Graph Meta powered by TutsKid.com.