[R] grouping in scatterplot3d
ligges at statistik.uni-dortmund.de
Wed Jul 3 16:53:37 CEST 2002
Rishabh Gupta wrote:
> Hi all,
> I've been using the scatterplot3d function (from the scatterplot3d library) to create 3D plots. I was wondering whether there is
> anyway to group the points according to a particular group variable. For example I used the plot function as
> plot( factor( <GROUPINGVAR> ) , <PLOTVARS> )
> to organise the results in a according to the grouping variable.
And you got boxplots ...
> I was wondering whether there is any equivalent way of doing this
> with scatterplot3d or any other equivalent 3d plotting function.
> I understand that this would be a difficult task since
> there are 'no spare dimensions' but for example could the function
> differentiate between different groups using colours or find
You want that the plotting function finds clusters? I am
Of course you can color the different groups. Make use of the argument
'color', another choice is the use of different plotting characters
(argument 'pch'). In your syntax:
scatterplot3d(<PLOTVAR>, [<PLOTVAR2>], [<PLOTVAR3>],
color = as.integer(factor(<GROUPINGVAR>)))
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help