Re: [R] Creating smooth color regions with panel.contourplot()

2008-09-18 Thread Waichler, Scott R
> Does the contour() solution work? If not, there's not really > much that can be done. Yes, I figured out how to add the naming of arguments. This works great: library(gridBase) library(lattice) data(volcano) panel.filledcontour <- function(x, y, z, subscripts, at, col.regions = cm.colors,

Re: [R] Creating smooth color regions with panel.contourplot()

2008-09-18 Thread Deepayan Sarkar
On Thu, Sep 18, 2008 at 1:36 PM, Waichler, Scott R <[EMAIL PROTECTED]> wrote: >> > Thank you very much, Deepayan. There is just one more feature I'd >> > like to get, the ability to add the contour lines. My revision to >> > your code below prints too many lines. What needs to be changed? > >> Y

Re: [R] Creating smooth color regions with panel.contourplot()

2008-09-18 Thread Waichler, Scott R
> > Thank you very much, Deepayan. There is just one more feature I'd > > like to get, the ability to add the contour lines. My revision to > > your code below prints too many lines. What needs to be changed? > You need to name arguments here. as.double(at) is being > matched to 'nlevels', b

Re: [R] Creating smooth color regions with panel.contourplot()

2008-09-18 Thread Deepayan Sarkar
On Thu, Sep 18, 2008 at 10:23 AM, Waichler, Scott R <[EMAIL PROTECTED]> wrote: > Thank you very much, Deepayan. There is just one more feature I'd like > to get, the ability to add the contour lines. My revision to your code > below prints too many lines. What needs to be changed? > > --Thanks,

Re: [R] Creating smooth color regions with panel.contourplot()

2008-09-18 Thread Waichler, Scott R
Thank you very much, Deepayan. There is just one more feature I'd like to get, the ability to add the contour lines. My revision to your code below prints too many lines. What needs to be changed? --Thanks, Scott Waichler [EMAIL PROTECTED] library(gridBase) library(lattice) data(volcano) pa

Re: [R] Creating smooth color regions with panel.contourplot()

2008-09-17 Thread Deepayan Sarkar
On Wed, Sep 17, 2008 at 1:25 PM, Deepayan Sarkar <[EMAIL PROTECTED]> wrote: > On Wed, Sep 17, 2008 at 1:12 PM, David Carslaw > <[EMAIL PROTECTED]> wrote: >> >> I think this is a very useful function that I imagine has wide appeal - >> thanks. Using the code below produces the plot OK but when I tr

Re: [R] Creating smooth color regions with panel.contourplot()

2008-09-17 Thread Deepayan Sarkar
On Wed, Sep 17, 2008 at 1:12 PM, David Carslaw <[EMAIL PROTECTED]> wrote: > > I think this is a very useful function that I imagine has wide appeal - > thanks. Using the code below produces the plot OK but when I try and > copy/save it (as a metafile) I receive the following error and an hourglass

Re: [R] Creating smooth color regions with panel.contourplot()

2008-09-17 Thread David Carslaw
I think this is a very useful function that I imagine has wide appeal - thanks. Using the code below produces the plot OK but when I try and copy/save it (as a metafile) I receive the following error and an hourglass: Error: invalid graphics state [using XP, 2.72, lattice 0.17.13] Regards, Dav

Re: [R] Creating smooth color regions with panel.contourplot()

2008-09-17 Thread Deepayan Sarkar
On 9/15/08, Waichler, Scott R <[EMAIL PROTECTED]> wrote: > When I use panel.contourplot() with filled color regions, the coloring > follows the stair-step edge of the underlying grid instead the smooth > contour lines themselves. How can I get the latter behavior? I would > guess there is a mu