[R] lattice contourplots

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Mon Jun 1 13:02:00 CEST 2015


What does quartz() have to do with this? If quartz is the problem, R-sig-mac would be a better place to ask. Or are you being bitten by R FAQ 7.22?
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

On June 1, 2015 6:24:18 AM EDT, ivo welch <ivo.welch at gmail.com> wrote:
>Dear R (3.2.0, osx) experts:  I would like to create contourplots from
>irregular data frames (i.e., not a matrix on a grid).    I am getting
>inconsistent results from lattice contourplot().  sometimes it works
>(quartz plot on contours), sometimes it doesn't (blank plot = nada).
>I have tried variations from
>http://stackoverflow.com/questions/10805093/contour-plot-from-data-frame
>, but I do not understand the problem here.  contourplot gives no
>error messages.
>
>an example is
>
>    require(lattice)
>
>    d <- data.frame( x =  (1:30 + rnorm(30)), y = (1:30 + rnorm(30)) )
>    d <- within(d, z <- sin(x+y))
>
>    quartz()
>    contourplot( z ~ x * y, data = d)
>
>am I committing an error, or is there something more robust or at
>least verbose, perhaps?
>
>help appreciated.  /iaw
>
>----
>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