Hi all, Is it possible to draw line segments in a 3d space plot? I'm interested to draw the errors from an observed value to the regression plane, for a textbook example in an Intro Stats handbook for multiple regression. I used the scatterplot3d package to draw the regression plane. Many thanks, Adrian ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Adrian Dusa (adi@roda.ro) Romanian Social Data Archive (www.roda.ro) 1, Schitu Magureanu Bd. 76625 Bucharest sector 5 Romania Tel./Fax: +40 (21) 312.66.18\ +40 (21) 312.02.10/ int.101 [[alternative HTML version deleted]]
Have you looked at the documentation on "persp", especially the function "trans3d" in the examples? Also, have you tried www.r-project.org -> search -> "R site search", searching for what you want? This "persp" -> "trans3d" was mentioned in another recent discussion on this list. hope this helps. spencer graves Adrian Dusa wrote:>Hi all, > > > >Is it possible to draw line segments in a 3d space plot? > >I'm interested to draw the errors from an observed value to the >regression plane, for a textbook example in an Intro Stats handbook for >multiple regression. > >I used the scatterplot3d package to draw the regression plane. > > > >Many thanks, > >Adrian > > > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Adrian Dusa (adi at roda.ro) >Romanian Social Data Archive (www.roda.ro) >1, Schitu Magureanu Bd. >76625 Bucharest sector 5 >Romania > > >Tel./Fax: > >+40 (21) 312.66.18\ > >+40 (21) 312.02.10/ int.101 > > > > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://www.stat.math.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > >
Adrian Dusa wrote:> Hi all, > > > > Is it possible to draw line segments in a 3d space plot? > > I'm interested to draw the errors from an observed value to the > regression plane, for a textbook example in an Intro Stats handbook for > multiple regression. > > I used the scatterplot3d package to draw the regression plane.An example on how to draw segments for residuals on a regression plane with scatterplot3d is shown in Section 4.2.2 (pp. 20-22) of Ligges, U. and M?chler, M. (2002): Scatterplot3d - an R Package for Visualizing Multivariate Data. Technical Report 22/2002. SFB 475, Department of Statistics, University of Dortmund, Germany. http://www.statistik.uni-dortmund.de/sfb475/berichte/tr22-02.pdf Uwe Ligges> > > Many thanks, > > Adrian > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Adrian Dusa (adi at roda.ro) > Romanian Social Data Archive (www.roda.ro) > 1, Schitu Magureanu Bd. > 76625 Bucharest sector 5 > Romania > > > Tel./Fax: > > +40 (21) 312.66.18\ > > +40 (21) 312.02.10/ int.101 > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html