[R] 4 dimensional graphics
Petr PIKAL
petr.pikal at precheza.cz
Thu Jan 10 17:41:32 CET 2008
Thank you
Basically I have a rectangular space (like an aquarium) in which I made
some analysis. I can make
image(lat, long, value) for each height but what I dream about is to make
something like scatterplot3d(lat, long, height) with points set according
to a value.
Up to now i can do
scatterplot3d(sloupecn, radan, vrstvan, color=as.numeric(cut(value, c(0,
100, 400, 1000))))
which will give you green and red points in upper right corner. I started
to try to make cex.symbols scaled according to value too but up to now I
did not manage to work correctly.
in
scatterplot3d(sloupecn, radan, vrstvan, cex.symbols = value/max(value)+2,
color=as.numeric(cut(value, c(0, 100, 400, 1000))))
the biggest points are at other places then I expected.
here are the data
vrstvan sloupecn radan value
1 4 1 73.8
1 4 9 54.9
1 4 17 72
1 1 1 96
1 1 9 52.1
1 1 17 53.3
4 4 1 58.4
4 4 9 93.5
4 4 17 140.2
4 1 1 90.3
4 1 9 36.5
4 1 17 55.1
7 4 1 169.1
7 4 9 718
7 4 17 813
7 1 1 73.4
7 1 9 46.5
7 1 17 205
Petr
petr.pikal at precheza.cz
"hadley wickham" <h.wickham at gmail.com> napsal dne 10.01.2008 16:07:31:
> On Jan 10, 2008 8:36 AM, Petr PIKAL <petr.pikal at precheza.cz> wrote:
> > Dear all
> >
> > I want to display 4 dimensional space by some suitable way. I searched
> > CRAN and found miscellaneous 3 dim graphics packages which I maybe can
> > modify but anyway I am open to any hint how to efficiently display
data
> > like:
> >
> > longitude, latitude, height, value
>
> What exactly are you interested in? I'd start with plots of:
>
> * long, lat, height
> * long, lat, value
> * height, value
>
> to give you a feel for what is going on.
>
> Hadley
>
>
> --
> http://had.co.nz/
More information about the R-help
mailing list