[R] 3d scatter plot

Eric Hu eric.y.hu at gmail.com
Fri Jul 15 19:48:45 CEST 2005


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




More information about the R-help mailing list