[R] "cloud" function doesn't plot
Simon Blomberg
Simon.Blomberg at anu.edu.au
Mon Jun 23 08:26:39 CEST 2003
Actually, there IS a search facility, although you have to look for it. A search on "cloud" returned 5 pages. If you type
?cloud, you can see that you need to provide a formula as well as a dataset. So if your variables are x,y,z in dataframe dat, then cloud(z~x*y, data=dat) should work.
Cheers,
Simon.
Simon Blomberg, PhD
Depression & Anxiety Consumer Research Unit
Centre for Mental Health Research
Australian National University
http://www.anu.edu.au/cmhr/
Simon.Blomberg at anu.edu.au +61 (2) 6125 3379
> -----Original Message-----
> From: Tony Ross [mailto:ynotssor at hotmail.com]
> Sent: Monday, 23 June 2003 4:09 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] "cloud" function doesn't plot
>
>
> Forgive me please if this has been answered previously, but
> the r-help
> archive doesn't have a "search" capability. It's a pity, as
> I'm sure that
> there's a wealth of informative help in there.
>
> I am unable to get the "cloud" function to produce a fundamental 3D
> scatterplot. I have a 3-column numeric matrix:
>
> >is.matrix(sanity.MIF); is.numeric(sanity.MIF); dim(sanity.MIF);
> >cloud(sanity.MIF)
> [1] TRUE
> [1] TRUE
> [1] 2970 3
> >
>
> A blank grey graphics window is opened, but no vestige of a
> plot or labels
> of any kind.
>
> Can someone tell me what I am missing please? R 1.7.1
> Windows2000 is new to
> me, but plenty of prior S-Plus Unix experience, including the
> use of the
> "spin" function for rotational 3D scatterplots.
>
> Thank You for your help.
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
More information about the R-help
mailing list