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