On 6/16/2008 4:40 PM, Duncan Murdoch wrote:
On 6/16/2008 4:25 PM, Floyd poole wrote:
I am new to R  and what to find out which package would be best to create a
surface plot, 2d or 3d if possible. I have a matrix (depth.dat) which has
over 15k depth measurements from an ultrasonic corrosion mapping
application. These depth measurements only have one axis (x) but I have used
Octave and gnuplot providing decent results, but R seems to have a web
interface with PERL which is what I am looking for.

For static plots, scatterplot3d (in the scatterplot3d package) is best. For rotatable surfaces, persp3d in the rgl package. (See example(persp3d) for some examples.)

Sorry, I changed my mind in the middle of writing that and didn't edit properly.

For surfaces:

persp() (in the base graphics package) for static plots
persp3d() (in rgl) for rotatable plots

For 3D scatterplots:

scatterplot3d() (in scatterplot3d) for static
plot3d() (in rgl) for rotatable.

Duncan Murdoch

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to