[R] surface plotting
Duncan Murdoch
murdoch at stats.uwo.ca
Mon Jun 16 22:50:14 CEST 2008
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
More information about the R-help
mailing list