Desktop Survival Guide
by Graham Williams

Separate Line Plots

The multiple line plots can be separated into their own plots, stacked vertically, to give a clearer view of the individual plots. We can use the zoo package to plot sequences. These plots are especially useful for data that is sequence oriented, such as time series plots, but even here we can get some insights into the data.

Image rplot-wine-zoo

cols <- c("Ash", "Phenols", "Proanthocyanins", "Dilution")
zdat <- zoo(wine[,cols], 1:nrow(wine))
plot(zdat, main="Wine", col=1:4)

Copyright © Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
The PDF version is a formatted comprehensive draft book (with over 800 pages).
Brought to you by Togaware. This page generated: Sunday, 22 August 2010