Togaware DATA MINING
Desktop Survival Guide
by Graham Williams
Google

Bar Plot

A three dimensional interactive barplot using plot3d from rgl:



mymat <- data.frame(
    x=c(1,1,1,2,2,2,3,3,3),
    y=c(1,2,3,1,2,3,1,2,3),
    z=c(1,2,3,4,5,6,7,8,9))

library(rgl)

    plot3d(mymat,
      type="h",
      xlab="xlabel", ylab="ylabel", zlab="zlabel",
      xlim=c(1,3), ylim=c(1,3),
      size=5,
      axes=FALSE,
      main="My Bar Plot")

      axis3d("x", at=1:3, labels=c("Low","Medium","High"))
      axis3d("y", at=1:3, labels=c("Green","Blue","Black"))
      grid3d("z", n=3)

XXXX



Copyright © 2004-2010 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