Hi all, How do I visualize a contour of a tri-variate normal distribution? I just like to see the ellipsoid very much. I hope there is a easy way or existing method in R. Thank you a lot! Michael. [[alternative HTML version deleted]]
Duncan Murdoch
2006-Feb-02 11:51 UTC
[R] is there a way to visualize 3D normal distributions?
On 2/2/2006 3:39 AM, Michael wrote:> Hi all, > > How do I visualize a contour of a tri-variate normal distribution? > > I just like to see the ellipsoid very much. I hope there is a easy way or > existing method in R.The misc3d package includes a function for 3d contour plots; that should do what you want. There are some errors in the rendering when plotting multiple contours, due to limitations in rgl (the underlying package that does the rendering). The problem is that transparent surfaces need to be rendered in order from back to front, and rgl doesn't do that. But it still looks good. Duncan Murdoch
Duncan Murdoch <murdoch <at> stats.uwo.ca> writes:> > On 2/2/2006 3:39 AM, Michael wrote: > > Hi all, > > > > How do I visualize a contour of a tri-variate normal distribution? > > > > I just like to see the ellipsoid very much. I hope there is a easy way or > > existing method in R. > > The misc3d package includes a function for 3d contour plots; that should > do what you want. >is contour3d really necessary or could you just plot ellipsoids? (library(rgl); demo(shapes3d)) -- still a little bit of figuring to do, but this should get you most of the way there. Ben Bolker
Dear Michael, Some time ago, I posted to r-help a solution to a problem very close to this, which adapts the scatter3d() function in the Rcmdr package so that it plots concentration ellipsoids. You'll find the code at <http://finzi.psych.upenn.edu/R/Rhelp02a/archive/61156.html>. I hope this helps, John -------------------------------- John Fox Department of Sociology McMaster University Hamilton, Ontario Canada L8S 4M4 905-525-9140x23604 http://socserv.mcmaster.ca/jfox --------------------------------> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Michael > Sent: Thursday, February 02, 2006 3:39 AM > To: R-help at stat.math.ethz.ch > Subject: [R] is there a way to visualize 3D normal distributions? > > Hi all, > > How do I visualize a contour of a tri-variate normal distribution? > > I just like to see the ellipsoid very much. I hope there is a > easy way or existing method in R. > > Thank you a lot! > > Michael. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html