Devoted to open data and open source in science and education.

View All Tutorials


R programming (56)
Hierarchical Data Formats (HDF5) (15)
Spatial Data & GIS (22)
LiDAR (10)
Raster Data (14)
Remote Sensing (25)
Data Visualization (4)
Hyperspectral Remote Sensing (18)
Time Series (17)
Phenology (8)
Vector Data (6)
Metadata (1)
Git & GitHub (7)
(1) (1) (14) (1) (1) (1) (1)

Tutorial by R Package

dplyr (9)
ggplot2 (18)
h5py (2)
lubridate (time series) (7)
maps (1)
maptools (1)
plyr (2)
raster (26)
rasterVis (raster time series) (3)
rgdal (GIS) (24)
rgeos (2)
rhdf5 (11)
sp (5)
scales (4)
gridExtra (4)
ggtheme (0)
grid (2)
reshape2 (3)
plotly (5)

View ALL Tutorial Series

Twitter Youtube Github


R Bloggers
Date(s): - Aug 7, 2017


The National Ecological Observatory Network (NEON) provides open ecological data from over 80 locations across the United States. These data are available both on the NEON data portal and through the NEON Application Programming Interface (API). The API allows direct programmatic access to data and metadata in the NEON database, enabling automation and instantaneous updating of code and models. Come to this workshop to learn to navigate the NEON API. NEON scientists will demonstrate how to use the API, focusing on access via the R package httr, but also covering the general API structure. Attendees are encouraged to bring laptops and code along with the demonstration.

Required Prior Knowledge

Basic familiarity with R is recommended; no previous experience with APIs needed. The demonstration materials will also be made available online.

This 1.5-hr workshop will be taught at the 2017 meeting of the Ecological Society of America (ESA) in Portland, OR. You must be a registered attendee of the conference. For more information, visit the ESA 2017 annual meeting website.

Things You’ll Need For The Workshop

To fully participant in this workshop, we recommend you bring a laptop with the most current version of R loaded on your computer. You can still participate in the workshop without bringing a laptop.

For details on setting up R & RStudio in Mac, PC, or Linux operating systems, please see the instructions below.

Install R Packages

Please have these packages installed and updated prior to the start of the workshop.

  • httr: install.packages("httr")
  • jsonlite: install.packages("jsonlite")
  • dplyr: install.packages("dplyr")
  • devtools: install.packages("devtools")
  • geoNEON: devtools::install_github("NEONScience/NEON-geolocation/geoNEON")

Updating R Packages

In RStudio, you can go to Tools --> Check for package updates to update previously installed packages on your computer.

Or you can use update.packages() to update all packages that are installed in R automatically.

Workshop Instructors

  • Claire Lunch; @dr_lunch, Staff Scientist, Plant Physiology; NEON program, Battelle
  • Megan A. Jones; @meganahjones, Staff Scientist/Science Educator; NEON program, Battelle
  • Christine Laney; Staff Scientist; NEON program, Battelle

Please get in touch with the instructors prior to the workshop with any questions.


Please tweet using the hashtag #WorkWithData and @NEON_Sci during this workshop!

Workshop Schedule

Location: B115, Oregon Convention Center Please double check the conference schedule as rooms may change!

Time Topic
11:30 Begin workshop
  Using the NEON API in R tutorial
13:15 End workshop

Online Tutorials

All NEON workshops and self-paced tutorials can be accessed via the NEON Data Skills portal.

Additional Set Up Resources

Windows R/RStudio Setup

Once R and R studio are installed, open RStudio to make sure it works and you don’t get any error messages.

Mac R/RStudio Setup

  • If your Mac is set up for UiO use, you can install R from Managed Software Center

  • Go to CRAN and click on Download R for (Mac) OS X
  • Select the .pkg file for the version of OS X that you have and the file will download.
  • Double click on the file that was downloaded and R will install
  • Go to the RStudio Download page
  • Under Installers select RStudio 0.98.1103 - Mac OS X 10.6+ (64-bit) to download it.
  • Once it’s downloaded, double click the file to install it

Once R and R studio are installed, open RStudio to make sure it works and you don’t get any error messages.

Linux R/RStudio Setup

  • R is available through most Linux package managers. You can download the binary files for your distribution from CRAN. Or you can use your package manager (e.g. for Debian/Ubuntu run sudo apt-get install r-base and for Fedora run sudo yum install R).
  • To install RStudi, go to the RStudio Download page
  • Under Installers select the version for your distribution.
  • Once it’s downloaded, double click the file to install it

Once R and R studio are installed, open RStudio to make sure it works and you don’t get any error messages.