[R] Rcmdr and scatter3d

John Fox jfox at mcmaster.ca
Wed Oct 5 15:17:20 CEST 2005


Dear Ted,

I assumed that since Naiara was using scatter3d(), he wants a 3D dynamic
scatterplot. He could add points (actually, spheres) to the rgl graph
produced by scatter3d() -- the analog of plot() followed by points() for a
2D graph -- but doing so would be much more work than plotting by groups.

Regards,
 John

--------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario
Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox 
-------------------------------- 

> -----Original Message-----
> From: ecatchpole [mailto:e.catchpole at adfa.edu.au] 
> Sent: Tuesday, October 04, 2005 8:55 PM
> To: John Fox
> Cc: 'Naiara S. Pinto'; r-help at stat.math.ethz.ch
> Subject: Re: [R] Rcmdr and scatter3d
> 
> Niara,
> 
> Alternatively, instead of scatter3d, the analogy to "hold on" 
> in Matlab is to use plot() for the first set of data, then 
> points() for the remainder. See
> 
> ?plot
> ?points
> 
> Ted.
> 
> On 05/10/05 11:18,  John Fox wrote,:
> > Dear Naiara,
> > 
> > Combine the data sets and differentiate among them with a 
> factor. Then 
> > use the groups argument to scatter3d (see ?scatter3d). If 
> you're using 
> > the R Commander to make the plot, the 3D scatterplot dialog 
> box as a 
> > plot by groups button. You can also fit colour-coded 
> regression surfaces by group.
> > 
> > I've appended a new version of the scatter3d function, not 
> yet in the 
> > Rcmdr package, which will also plot data ellipsoids (for the whole 
> > data set or by groups).
> > 
> > I hope this helps,
> >  John
> > 
> > ----------- snip --------------
> 
> > --------------------------------
> > 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 
> Naiara S. Pinto
> >>Sent: Tuesday, October 04, 2005 6:13 PM
> >>To: r-help at stat.math.ethz.ch
> >>Subject: [R] Rcmdr and scatter3d
> >>
> >>Hi folks,
> >>
> >>I'd like to use scatter3d (which is in R commander) to plot 
> more than 
> >>one dataset in the same graph, each dataset with a different color. 
> >>The kind of stuff you would do with "holdon"
> >>in Matlab.
> >>
> >>I read a recent message that was posted to this list with a similar 
> >>problem, but I couldn't understand the reply. Could someone give me 
> >>one example? How do you plot subgroups using scatter3d?
> >>
> >>Thanks a lot!
> >>
> >>Naiara.
> >>
> >>
> >>--------------------------------------------
> >>Naiara S. Pinto
> >>Ecology, Evolution and Behavior
> >>1 University Station A6700
> >>Austin, TX, 78712
> >>
> >>______________________________________________
> >>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
> > 
> > ______________________________________________
> > 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
> 
> 
> --
> Dr E.A. Catchpole
> Visiting Fellow
> Univ of New South Wales at ADFA, Canberra, Australia and 
> University of Kent, Canterbury, England
> - www.ma.adfa.edu.au/~eac
> - fax: +61 2 6268 8786		
> - ph:  +61 2 6268 8895




More information about the R-help mailing list