Re: [R] 3d scatter plot

From: Sundar Dorai-Raj <sundar.dorai-raj_at_pdf.com>
Date: Sat 16 Jul 2005 - 03:56:15 EST

Eric Hu wrote:
> Hi, I ran into a dilemma trying to plot the following data in a 3d
> scatter fashion. My data are not always increasing as persp() expects.
> For now I use scatterplot3d to get points in a 3d scatter plot. I
> wonder if I have any way to plot the surfaces. Thanks!
>
> Eric
>
>
> ####sample data
>
> -0.50 0.40 1.281
> -0.50 0.45 1.795
> -0.50 0.50 1.766
> -0.40 0.35 1.595
> -0.40 0.40 1.388
> -0.40 0.45 2.344
> -0.40 0.50 2.179
> -0.30 0.35 1.792
> -0.30 0.40 2.349
> -0.30 0.45 1.682
> -0.30 0.50 1.493
> -0.20 0.35 1.836
> -0.20 0.40 2.186
> -0.20 0.45 1.863
> -0.20 0.50 1.775
> -0.10 0.25 2.991
> -0.10 0.30 2.426
> -0.10 0.35 1.954
> -0.10 0.40 1.136
> -0.10 0.45 1.438
> -0.10 0.50 1.429
> -0.05 0.30 2.163
> -0.05 0.35 1.953
> -0.05 0.40 1.672
> -0.05 0.45 1.688
> -0.05 0.50 1.963
>

?wireframe in the lattice package may help.

--sundar



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Jul 16 03:59:41 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:45 EST