Skip to content
Prev 12656 / 398502 Next

Help on plotting a regression plane?

Uwe Ligges wrote:
[SNIP]
There is scatterplot3d_0.3-7 on CRAN now.
scatterplot3d() returns a new function plane3d() now, which is designed
to draw the requested regression plane.

For more details have a look at the help page, particularly at the last
example:

    library(scatterplot3d)
    data(trees)
    s3d <- scatterplot3d(trees, type="h", highlight.3d=TRUE, 
        angle=55, scale.y=0.7, pch=16, main="scatterplot3d - 5")
  # Now adding a regression plane to the "scatterplot3d":
    attach(trees)
    my.lm <- lm(Volume ~ Girth + Height)
    s3d$plane3d(my.lm)


Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._