[R] 4D Plot ??

Thomas Lumley tlumley at u.washington.edu
Thu Apr 7 17:08:22 CEST 2005


On Thu, 7 Apr 2005, Mike Prager wrote:

> Tried to post this last night, but it doesn't seem to have appeared.
>
> Using R 2.0.1 on Windows XP + SP2.
>
> I am traveling, away from my usual references. I'm trying to make a
> 4-dimensional plot: a levelplot with overlaid contours, with different
> response variables represented by (1) colors on the levelplot and (2)
> the contour lines.
>
> First try was filled.contour + contour but the key printed by the first
> means that the scales differ.

You could put the contour() call in the plot.axes argument in the 
filled.contour() call.  This is a useful trick for getting the right 
scales for an overlay.

 	-thomas




More information about the R-help mailing list