Re: [R] surface plotting

From: Duncan Murdoch <>
Date: Mon, 16 Jun 2008 16:50:14 -0400

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 mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Mon 16 Jun 2008 - 21:10:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 16 Jun 2008 - 21:31:23 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive