Collaborative coding for R

I was recently searching for a web-based collaborative coding option for R. There are plenty of free collaborative coding environments available online for a number of popular languages, but at first I wasn’t finding any which offered syntax highlighting for R. In fact, what I did seem to find was other useRs like me groaning about how silly it was that R is still excluded from them all. It’s not like a number of other coding environments don’t already support syntax highlighting for R, like text editors (Notepad++, SublimeText, etc.). So why not here? Well, I found one! Maybe there are more. But after finding one, I simply stopped searching. Squad.

squad
Continue reading

Spatial statistics of lightning strikes 4

Continuing from part three where I plotted lightning strikes over Alaska in June and July of 2012 color coded by strike multiplicity and strike strength, in this post I begin the transition from descriptive statistics to inferential statistics. This is still exploratory data analysis, however, in the sense that I know nothing arrived at here will be conclusive. Statistical modeling in general, including the spatial statistics performed on the lightning data here using variogram modeling and kriging, is a process that gradually transitions from exploratory to confirmatory in nature.

Continue reading

Plots from CMIP3 / CMIP5 climate model R Shiny app

Here are some screenshots of plots comparing CMIP3 and CMIP5 climate models. The plots come from the web application I have been developing in R for comparing and evaluating SNAP’s downscaled CMIP3 and CMIP5 GCM data. The app is still under development and not yet released. The plots I’ve shared here focus exclusively on CMIP5 RCP 6.0. CMIP3 can be assumed absent unless specifically mentioned in a plot caption. When present in comparison to CMIP5, I used the SRES A1B scenario. The plots make use of the five models SNAP has previously evaluated as being most sensible for our purposes in Alaska and the Arctic. Continue reading

R Shiny app progress update: plot contour, image, and 3D perspective

A while back I posted some screenshots of an R Shiny web application I’d been working on. It demonstrates integration of the plot3D and rgl packages into a Shiny app for 2D and 3D plotting. The rgl functionality is assisted by the shinyRGL package. The app is still under development but a number of changes and code improvements have been made.

plot3Dimageset2_3

Continue reading

Spatial statistics of lightning strikes 3

Continuing from part two where I used kernel density estimation to interpolate and map the density of lightning strikes over Alaska in June and July of 2012, next we take our first look at some data associated with the observed lightning strike locations. Specifically, strike multiplicity and strike strength.

Continue reading

Up-to-date daily data: Alaska precipitation app + ACIS API

I have made a number of updates to my Alaska historical daily precipitation web application made in R with the shiny package. The updates fall into two general categories. First, with recent additions to the ever-expanding functionality of Shiny, it has become very easy to integrate selectize.js via the same old selectInput function, for which selectize.js now provides the default behavior. This has yielded some nice functional and aesthetic changes.
akDailyPrecipCustomCharts

Continue reading

Updates to Alaska/Canada community-level climate app

Recently RStudio released version 0.9.x of the shiny package for R. This version provides, among other things, some nicer aesthetics and and enhanced functionality for selection menus (the selectInput function now uses selectize.js).
AKCAN_climate_app_screenshots06

Continue reading