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.

[width=0.8]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 © 2004-2006 Graham.Williams@togaware.com
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware.