Skip to content
Prev 334597 / 398506 Next

3D Surface plot

On Wed, Dec 18, 2013 at 2:52 PM, Simon Delay-Fortier
<simon.delay-fortier at mail.mcgill.ca> wrote:
How "3d" is your surface here? Because there's "3d" and there's
what's known as "2.5d"

 A 3d surface could be something like the surface of a sphere, or a
cave, or an overhanging cliff, whereas a 2.5d surface is a
single-valued function of x and y.

 If you have a true 3d surface then that's beyond me and involves
working out surface normals and all sorts of other clever stuff which
I don't know about.

 If its really 2.5d then yes, you do need to compute the values of
your surface on a grid in order to display it using rgl's surface3d
function. You can do this with some 2d interpolation code, such as
kriging or inverse distance weighting, using assorted packages such as
automap (which makes it easy but beware) or gstat.

 Since this seems to be a real-world geography problem, you might haul
over to the r-sig-geo mailing list and as there where the spatial guys
hang out.

Barry
Message-ID: <CANVKczPA_fMfjqOj680Vq8J9H71xm5VNaASL5+gb0FM9pRoLxg@mail.gmail.com>
In-Reply-To: <8eefc7b84e0c422894b9da6acaf2c305@EX-1-HT0.lancs.local>