[R] Filled contour plot showing labeled isolines?

David Winsemius dwinsemius at comcast.net
Wed Nov 24 03:46:58 CET 2010

On Nov 23, 2010, at 6:25 PM, jt306 wrote:

> Is it possible to create a contour plot with the isolines labeled.   
> I know
> you can do this with Matlab.  Argh!

It is fairly straightforward with lattice::levelplot. Provide some  
sample data.

> I tried creating a filled contour plot, then using par(new=T),  
> followed by
> overlaying the contour plot on top.  However, the placement of the  
> filled
> contour plot and the contour plot do not align correctly. Any  
> suggestions
> would be appreciated.
> Thanks,
> Jon

David Winsemius, MD
West Hartford, CT

More information about the R-help mailing list