# [R] grouping in scatterplot3d

Rishabh Gupta rg117 at ohm.york.ac.uk
Wed Jul 3 17:38:00 CEST 2002

```Hi,
I think what I was hoping for was a 3d version of boxplot. Box plot will give me a median, the quartiles and the upper and lower
range for each group. If there is a function that would give me the same information but for 3d plots, that is really what I was
hoping for.

Many Thanks

Rishabh
----- Original Message -----
From: "Uwe Ligges" <ligges at statistik.uni-dortmund.de>
To: "Rishabh Gupta" <rg117 at ohm.york.ac.uk>
Cc: <r-help at stat.math.ethz.ch>
Sent: Wednesday, July 03, 2002 3:53 PM
Subject: Re: [R] grouping in scatterplot3d

|
|
| 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
| > clusters
|
| You want that the plotting function finds clusters? I am
| misunderstanding ...
|
| 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>)))
|
| Uwe Ligges
|

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

```