[R] svyplot and svysmooth with hexbin

2012-10-18 Thread Durant, James T. (ATSDR/DCHI/SSB)
Hi all- So sorry to bother you all with something pretty basic. I am trying to add the lines method output from svysmooth to a svyplot with style=grayhex. However, the line either appears in the wrong place or if I am running in R Studio it causes the system to crash. I know this is

Re: [R] svyplot and svysmooth with hexbin

2012-10-18 Thread Anthony Damico
try adding legend = 0 to your svyplot() On Thu, Oct 18, 2012 at 1:49 PM, Durant, James T. (ATSDR/DCHI/SSB) h...@cdc.gov wrote: Hi all- So sorry to bother you all with something pretty basic. I am trying to add the lines method output from svysmooth to a svyplot with style=grayhex.

Re: [R] svyplot and svysmooth with hexbin

2012-10-18 Thread Durant, James T. (ATSDR/DCHI/SSB)
...@gmail.com] Sent: Thursday, October 18, 2012 2:07 PM To: Durant, James T. (ATSDR/DCHI/SSB) Cc: r-help@r-project.org Subject: Re: [R] svyplot and svysmooth with hexbin try adding legend = 0 to your svyplot() On Thu, Oct 18, 2012 at 1:49 PM, Durant, James T. (ATSDR/DCHI/SSB) h...@cdc.govmailto:h

Re: [R] svyplot and svysmooth with hexbin

2012-10-18 Thread Paul Murrell
Hi On 19/10/2012 6:49 a.m., Durant, James T. (ATSDR/DCHI/SSB) wrote: Hi all- So sorry to bother you all with something pretty basic. I am trying to add the lines method output from svysmooth to a svyplot with style=grayhex. However, the line either appears in the wrong place or if I am

Re: [R] svyplot and svysmooth with hexbin

2012-10-18 Thread Thomas Lumley
Here's an example. The problem is that hexbin uses grid graphics, not the base graphics that plot.svysmooth() uses, so you need to do the plotting yourself with grid. The necessary viewport is returned by svyplot() hexstuff-svyplot(api00~api99, design=dstrat, style=hex, xlab=1999 API,ylab=2000