[R] rgl: ellipse3d with axes

2008-09-24 Thread Michael Friendly
Last week I asked about data ellipses with rgl:::ellipse3d() with lines showing the principal axes. (The goal is a visual demonstration of PCA as a rotation of variable space to component space.) I was trying, unsuccessfully, to use princomp() to generate the PCA axes and plot them using

Re: [R] rgl: ellipse3d with axes

2008-09-24 Thread Duncan Murdoch
Michael Friendly wrote: Last week I asked about data ellipses with rgl:::ellipse3d() with lines showing the principal axes. (The goal is a visual demonstration of PCA as a rotation of variable space to component space.) I was trying, unsuccessfully, to use princomp() to generate the PCA axes

Re: [R] rgl: ellipse3d with axes

2008-09-24 Thread Michael Friendly
Duncan Murdoch wrote: The normals component contains the surface normals. It is used to help in rendering the surface, but isn't much use for your purposes. Unfortunately, I'm not familiar enough with the internals of princomp to tell you how to get the axes you want. Duncan Murdoch OK,

Re: [R] rgl: ellipse3d with axes

2008-09-24 Thread Duncan Murdoch
On 24/09/2008 10:12 AM, Michael Friendly wrote: Duncan Murdoch wrote: The normals component contains the surface normals. It is used to help in rendering the surface, but isn't much use for your purposes. Unfortunately, I'm not familiar enough with the internals of princomp to tell you how to

Re: [R] rgl: ellipse3d with axes

2008-09-24 Thread Duncan Murdoch
On 24/09/2008 11:11 AM, Duncan Murdoch wrote: On 24/09/2008 10:12 AM, Michael Friendly wrote: Duncan Murdoch wrote: The normals component contains the surface normals. It is used to help in rendering the surface, but isn't much use for your purposes. Unfortunately, I'm not familiar enough

Re: [R] rgl: ellipse3d with axes

2008-09-24 Thread Michael Friendly
Thanks Duncan ( others) Here is a function that does what I want in this case, and tries to do it to work generally with ellipse3d. (Note that I reverse the order of centre and scale 'cause I was bitten by trying ellipse3d.axes(cov, mu)) # draw axes in the data ellipse computed by ellipse3d

Re: [R] rgl: ellipse3d with axes

2008-09-24 Thread Duncan Murdoch
On 24/09/2008 12:32 PM, Michael Friendly wrote: Thanks Duncan ( others) Here is a function that does what I want in this case, and tries to do it to work generally with ellipse3d. (Note that I reverse the order of centre and scale 'cause I was bitten by trying ellipse3d.axes(cov, mu)) #

Re: [R] rgl: ellipse3d with axes

2008-09-24 Thread John Fox
of Sociology McMaster University Hamilton, Ontario, Canada web: socserv.mcmaster.ca/jfox -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Friendly Sent: September-24-08 9:24 AM To: R-Help Subject: [R] rgl: ellipse3d with axes Last week I asked