Learn R Programming

addScales (version 1.0-1)

addScales-package: addScales

Description

addScales

Arguments

Details

The DESCRIPTION file: addScales addScales

Trellised displays are powerful tools for exploring and comparing data. However, one challenge is how to handle plots in which the data in different panels have different locations and, more importantly, different scales/variability. Different locations can be dealt with via the relation = "sliced" option in lattice functions' scales argument. But different scaling sometimes causes plot details in panels with relatively little variability to be obscured because the data are “squashed” to accommodate the limits needed to show more variable data in others.

The addScales function unsquashes such data by varying the panel limits so that each panel fits just its data. This can easily be done by using the relation = "free" option in the scales argument. Unfortunately, with more then just a few panels, the separate axis scales for the different panels takes up too much display space and are difficult to read.

addScales addresses this problem by layering minimal location/scale information directly onto the panels. The intent is to save axis space without obscuring the panel data, but still allow the viewer to decode the information to compare the panels.

A simple API facilitates this task. In addition to the main addScales functions, a generic with an addScales.trellis method, there is an update method to allow the user to easily experiment with and customize the display. A few other functions provide some additional flexibility. Users desiring other capabilities should contact the author/maintainer with their requests.