tags:

views:

169

answers:

2

How does one go about drawing an hyperplane (given the equation) in 3D in R ? (i.e. 3d equivalent to "abline")

Thanks in advance,

+4  A: 

You probably want the packages scatterplot3d or HH (function regr2.plot). See, e.g., this example for scatterplot3d.

rcs
+2  A: 

Lattice supports 3D charts. See some of the nice examples from Lattice: Multivariate Data Visualization with R on the LearnR blog. For instance, with wireframe():

pl <- wireframe(fit.linear + fit.loess.1 + fit.loess.2 +
+     fit.locfit ~ wind * temperature | radiation, grid,
+     outer = TRUE, shade = TRUE, zlab = "")

Shane
thanks a lot: rcs's reply solves a punctual problem, but on a longer term thanks for the link: the plots there R outstanding...