RPubs will retire in June 2027. Your existing documents will stay accessible through December 31, 2031
and Connect Cloud is the recommended home for new publishing. Read the blog post
gravatar

BeccaStubbs

Rebecca Stubbs

Recently Published

MapSuite: An R Package for Thematic Maps
MapSuite is an R package that streamlines the process for making maps of point, polygon, and raster data using the foundation of the ggplot2 graphics library. This paper describes a series of functions designed to facilitate mapping spatial data, from simple representations of the geometries to visualizing a variables over a series, such as time or data subgroup. Also described is how the outputs of these functions can be used to stack geospatial data layers, generating sophisticated maps in R that previously were relegated to lengthy code or desktop mapping software. This document details some of the package's features. Code can be found at <https://github.com/RebeccaStubbs/MapSuite>
Polygons to Pixels
A quick tutorial on how to sample your polygon data in a grid to get raster data, as well as a quick example for how to visualize your raster data using the Woodson library.
Preparing Polygon Shapefiles for R
An example of bringing spatial data (shapefiles) into R, and doing a few basic operations manipulating their data and geometry.
Introduction to the Woodson Mapping Suite
This is a visual and instructional run-through of some of the features within the woodson libr0ry.
Intro to TMB Part 1: Finding Distribution Parameters of a Data Set
This walks through finding simple parameter estimates for distributions first in R, then in TMB. NOTE: This is a work in progress,
The Scrambled Polygons Problem
Merging tabular data onto spatial data in R can be fraught with peril. This is a simple example of how data attributes get assigned to the wrong geometry (scrambled) after a merge that re-orders the data attribute table.
fish_food_lecture_1