* *
* *
* *
* *
* *
* *
Trellis Display: Software Examples

* what, why, who, when

* display examples

* an interviewer asks tough questions

* writings about trellis display

* S/S-PLUS trellis software

* software documentation

* software examples

Just a small number of S-PLUS commands can produce quite complex trellis displays. Below are descriptions of various collections of examples that draw a wide variety of trellis displays.

Examples shipped with S-PLUS

The S-PLUS code contains examples. Each is a function that draws a trellis display. For example,

> example.dotplot
dotplot(variety ~ (yield | year * site), data = barley, aspect = 0.4, xlab = "Barley Yield (bushels/acre)")

draws a dot plot. To see all of the examples simply look at the documentation for any one of them, for example,

> ?example.dotplot

Examples from the Book Visualizing Data

The book Visualizing Data has about 300 visualizations of data. S/S-PLUS source files have been prepared that draw 285 of these displays, one source file per display. Each source file has as its name the number of the display in the book. For example, the source file named 2.1 draws Figure 2.1, 8 normal probability plots of the singer height data, one per voice part. The source file defines a function which can then be run to produce the plot. For example, the file 2.1 is

book.2.1 <- function()
qqmath(~ height | voice.part,
panel = function(x, y) {
panel.xyplot(x, y)
sub = list("Figure 2.1",cex=.8),
xlab = "f-value",
ylab="Height (inches)")

so the S-PLUS commands


produce the plot (and leave the function book.2.1() in your .Data directory).

The source files are available from statlib as a single ASCII file that can be used to source all of the functions into S in one go. Or the user can use an editor to select particular functions.

Most of the data sets used in the book examples are included with the Trellis library in S-PLUS or other libraries. All of the data sets from the book are available from statlib as a dump from data.dump() and may be read into S-Plus by data.restore().