Togaware DATA MINING
Desktop Survival Guide
by Graham Williams
Google

Stairs Plot

Another simple example plotting a sequence of numbers uses stairs (type="s") to give a city landscape type of plot.

Image rplot-line


pdf("graphics/rplot-line.pdf")
  l = c(1, 2, 3, 4, 5, 4, 5, 3, 6, 2, 3, 4, 8, 2, 1)
  plot(l, type="b", xlab="Days", ylab="Services")
dev.off()

http://rattle.togaware.com/code/rplot-line.R



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