[R] combine trellis lattice contour plot with simple plot() points() and text() commands?

Jim Lemon drjimlemon at gmail.com
Tue Jun 2 02:24:42 CEST 2015


Hi Ivo,
Not in a sane way. Have a look at the latticeExtra package that allows
most of these things to be done.

Jim


On Tue, Jun 2, 2015 at 7:03 AM, ivo welch <ivo.welch at anderson.ucla.edu> wrote:
> can I add ordinary graphics commands to a contourplot?  my naive
> attempts are telling me that plot.new() has not yet been called when I
> try to add text(1,1,"hi") or points( c(0,1), c(1,0) )?
>
> [or do I need to rewrite another contourplot with the old graphics
> system.  the basics are probably looking at adjacent points,
> pretending that they are linear, and mark where a line between them
> intercepts the level, and then hope that some sanity prevents me from
> connecting disconnected levels.  not my plan...]
>
> ----
> Ivo Welch (ivo.welch at gmail.com)
> http://www.ivo-welch.info/
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list