Thanks to William Thacker, Wils Corrigan, and Patrick Connolly for
responding to my question regarding 3-D (or rather, 4-D) graphics. I
haven't tried any of the suggestions, but they are not quite what my
intuition was expecting. I just thought this issue was fairly common and
there was a simple solution.
Original Question
I am in need of some advice on S-PLUS graphics. I need to illustrate data
on a 3 dimensional object. This is different from say the typical output
of persp() or wireframe() where there are 2 dimensions that may represent
location and a third that represents some value within the 2 dimensions.
As an example of what I would like think of mapping the terrain of a
geographic region in 3 dimensions but then having different colors on
these 3 dimensions representing population density. Are there sets of
functions in S-PLUS (or in a library) for this type of representation?
I am working on SPLUS 2000 for the PC.
Responses (in order mentioned above by name)
-------------------------------------------------------------------------------
What about using levelplot() to give colorfilled contours for the
population density and overlaying contourplot() to map the topography?
One possible idea is to use, say, a DEM for the wireframe input and then
the drape argument to control the color of the wireframe.
Don't really follow your question, but how about a contour plot? I've
found lots of uses for them.
|