2016-02 Debugging Display List Internals

This report documents the process of debugging a problem with the recording and replaying of R plots from one R session to another. The purpose of this report is to record the source of the problem, to record the solution to the problem, to explain some of the internal details of recorded R plots, and to demonstrate the ‘hexView’ package for exploring binary blobs.

Paul Murrell

Download

2015-07 Recording and Replaying the Graphics Engine Display List

In the development version of R (to be R 3.3.0), it is possible again to save the result of recordPlot() from one R session and then load it and replay it, with replayPlot(), in a different R session. This recording and replaying of R plots across R sessions has also been made safer, with more warnings and errors in place to protect against incompatibilities between R versions, and it has been made better, with support for reloading packages along with a “recordedplot”, and with support for reproducing the ‘grid’ display list when redrawing a “recordedplot” that contains ‘grid’ output.

Paul Murrell, Jeroen Ooms, JJ Allaire

Download

2015-06 A ‘safemode’ Package for R

The ‘safemode’ package provides a safemode() function that creates a “safe mode” session in R. In “safe mode”, all symbols have an “age” (a last-modified time stamp) and a set of dependent symbols, and a warning is issued whenever a symbol is used in an expression and its age exceeds the age of any of its dependents (i.e., there is warning whenever a “stale” symbol is used in an expression).

Paul Murrell

Download

2015-05 Generating SVG for Web Pages with the gridSVG Package

This document describes several different techniques for including SVG images within a web page and points out the important SVG attributes that control the final appearance of the SVG image within the web page. The document then describes how to control those attributes when generating SVG images with the ‘gridSVG’ package for R.

Paul Murrell

Download

2015-02 New Zealand’s Climate Data in R – An Introduction to clifro

The National Climate Database contains data collected from around
6,500 weather stations throughout New Zealand, providing a necessary
repository for any study involving New Zealand’s weather or climate.
Although data from this database can be accessed via a web portal (CliFlo),
the vast amount of information is not readily consumable. The clifro
R package provides the necessary functions to easily integrate the
National Climate Database with R, and provides a variety of elegant plotting
methods for data exploration. Also, by supplying functions to access the
database via CliFlo programmatically, clifro allows for transparent and
reproducible research when using these data.

Blake M. Seers and Nick T. Shears

Download

2014-02 Invertible Reproducible Documents

Reproducible documents provide an efficient way to produce reports by automatically generating content from code chunks within the report. The processing of a source document, that contains code chunks, to a final document, that contains automatically-generated content, is typically one way, with the resulting report being read-only. This report describes an experiment that attempts to make the final report document modifiable and attempts to invert the process from final document back to source document so that the modifications to the final document can be efficiently conveyed back to the original author of the report.

Eric Lim, Paul Murrell, and Finlay Thompson

Download.

2014-01 Improving the ‘gridGraphviz’ package in R

The gridGraphviz package renders node-and-edge graphs in R using the grid graphics package. Graphs are laid out using the Rgraphviz package to interface with the graph layout algorithms in graphviz. This article details the improvements made between gridGraphviz versions 0.2 and 0.3, including: support for “ellipse”- and “polygon”-shaped nodes; handling of edges in undirected graphs; support for various new arrow types; and support for edge labels. Version 0.3 also introduces a method to produce graphs with an overall size closer to graphviz’s output.

Ashley Noel Hinton and Paul Murrell

Download.