Message-ID: <3EF6A51E.6060804@statistik.uni-dortmund.de>
Date: 2003-06-23T06:58:38Z
From: Uwe Ligges
Subject: "cloud" function doesn't plot
In-Reply-To: <BAY8-F27P3D6g5dwDAx00001933@hotmail.com>
Tony Ross wrote:
>
>
>
>> From: "Simon Blomberg" <Simon.Blomberg at anu.edu.au>
>> Date: Mon, 23 Jun 2003 16:26:39 +1000
>
>
>> 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.
>
> [...]
>
>>> is.matrix(sanity.MIF); is.numeric(sanity.MIF); dim(sanity.MIF);
>>> cloud(sanity.MIF)
>>
>> [1] TRUE
>> [1] TRUE
>> [1] 2970 3
>>
>>>
>
> The "help(cloud)" facility states: "`formula' can be a matrix".
It states completely:
"As an extension to partially support the form used in filled.contour
and image, formula can be a matrix."
Thus, see ?image that you don't need a 3 column matrix, but a matrix
containing the z values.
I'd suggest to convert the matrix to a data.frame and follow the
suggestion from Simon Blomberg.
Uwe Ligges
> As I
> stated, I have a 3-column numeric matrix, so colum 3 should be plotted
> as a point above the 1st and 2nd column co-ordinates.
>
> No plot is produced however, just a blank graphics device.
Uwe Ligges