2013-1 TimingManager: Animation Sequences in JavaScript

The TimingManager library is a tool written in JavaScript used to apply animations in a web browser. It is not concerned with creation or modification of animation timing information, and delegates those tasks to R via the animaker package. Primarily TimingManager is focused on assigning actions to existing animations, then playing animation sequences using either a declarative or frame-based approach.

Simon Potter

Download

2012-12 Post-Processing grid Graphics

Statistical plots drawn with the ggplot2 package generate numerous grid grobs and viewports which are labelled and organised into a coherent hierarchy. This report describes an example that shows how to manipulate the grobs and viewports in a ggplot2 plot using tools from the grid package, export the result to SVG using gridSVG, then manipulate the result further using XML tools, to produce an interactive ggplot2 graphic for the web.

Paul Murrell

Download

2012-11 Generating Animation Sequence Descriptions

This report describes the animaker package for generating descriptions of animation sequences. An animation sequence is composed by combining atomic animations in series to create sequence animations or in parallel to create track animations. Functions are provided for manipulating animation sequences, generating timing schemes from animation sequences, and producing diagrams to visualise animation sequences.

Paul Murrell and Simon Potter

Download

2012-9 Writing grid Extensions

New hook functions, makeContext() and makeContent(), have been added to the grid graphics package. These functions allow an alternative approach to developing custom grobs when a grob can only decide what to draw at drawing time rather than when the grob is created. For custom grobs that are based on this new approach, the

grid.force() function provides access to low-level grobs that are otherwise invisible because they are only generated at drawing time.

These functions lead to greater flexibility in the development of custom grobs and more power to modify the result after drawing is complete.

Paul Murrell

Download

2012-8 Meta-analysis of a rare-variant association test

Genome-wide assocation studies have often been carried out by meta-analysis rather than by pooling individual-level data.  For one-dimensional parameter estimates and the corresponding tests of association these meta-analyses lead to essentially no loss of information relative to pooling individual data.  The situation is different for multi-parameter tests, such as the omnidirectional rare-variant tests being used in resequencing studies.  In this paper we consider one popular rare-variant test, a version of the sequence kernel association test.  We show that meta-analyses based on the $p$-value or test statistic from each contributing study are importantly less efficient than an analysis pooling individual data, but that a more sophisticated meta-analysis retains full efficiency. The meta-analysis is based on a reformulation of the test that links it to tests used in survey analysis.

Thomas Lumley, Jennifer Brody, Josee Dupuis, Adrienne Cupples

Download

2012-7 A Structured Approach for Generating SVG

The gridSVG package exports grid images to an SVG format for viewing on the web. This article describes a new development in the way that gridSVG produces the SVG output. The result is greater flexibility in how the SVG output is produced and increased opportunities to manipulate the SVG output, which creates new possibilities for generating more complex and sophisticated dynamic and interactive R graphics for the web.

Simon Potter and Paul Murrell

Download

 

2012-6 Working with the gridSVG Coordinate System

The gridSVG package exports grid images to an SVG format for viewing on the web. This article describes new features in gridSVG that allow grid coordinate system information to be exported along with the image. This allows the SVG image to be modified dynamically in a web browser, with full knowledge of coordinate system information, such as the scales on plot axes. As a consequence, it is now possible to create more complex and sophisticated dynamic and interactive R graphics for the web.

Simon Potter and Paul Murrell

Download

2012-5 Voronoi Treemaps in R

A Voronoi Treemap is a visualisation tool for displaying data with a hierarchical structure.  This article describes an open source implementation of Voronoi Treemaps in the R language and environment for statistical computing and graphics.  The article includes example usage for the main R functions and a detailed description of the underlying code.  The raw code itself is also available with this article.

Paul Murrell

Download

2012-4 Two-sample rank tests under complex sampling

Rank tests are widely used for exploratory and formal inference in the health and social sciences.  With the increasing use of data from complex survey samples in medical research, there is increasing demand for versions of rank tests that account for the sampling design. In the absence of design-based rank tests, naive unweighted rank tests are being used in survey analyses even by researchers who otherwise use inferential methods appropriate for the sampling design. We propose a general approach to constructing design-based rank tests when comparing groups within a complex sample and when using a national survey as a reference distribution, and illustrate both scenarios with examples.  We show that the tests have asymptotically correct level and that the relative power of different rank tests is not greatly affected by complex sampling.

Thomas Lumley, Alastair Scott

Download