[R] Coloured 3d surface

Spencer Graves spencer.graves at pdf.com
Mon Jul 14 14:29:46 CEST 2003

If you provide a toy example, it is a lot easier for others to test your 
code and experient with possible solutions.  [Besides, the effort to 
develop a very simple example often leads me to solutions to my own 
problems.  In that case, (a) I learn more, (b) I often get a quicker 
answer than I would from the list and then I don't have to disturb 
others, and (c) if I go to the list, I'm more likely to get what I want.]

sorry I couldn't be more helpful.  spencer graves

Peter Kraft wrote:
> Hello,
> I created a 3d surface (persp) with some points overlaid on it, which is 
> fine. Now I have a second set of z-values(x,y-values same as the first 
> surface), which I would like to make visible on the same graph, however, 
> not as a surface, but rather as coloured contour on the first surface, 
> so that the resulting graph will consist of the original surface having 
> the colour of the second set of z-values; I managed to create a coloured 
> contour plot, whereby the the contours are based on the first set of 
> z-values and the second set is a colour-coded overlay. If I could do 
> this in 3-d I would be happy for any hint you could give me.
> Thanks for any help
> Peter

More information about the R-help mailing list