Re: [R] SVYPLOT

2014-11-20 Thread David Winsemius
On Nov 20, 2014, at 12:56 PM, David Winsemius wrote: > > On Nov 20, 2014, at 8:10 AM, Anthony Damico wrote: > >> survey:::svyplot.default with style="grayhex" calls >> hexbin:::gplot.hexbin >> >> an internet search turns up lots of people asking the question "how do i >> set xlim and ylim

Re: [R] SVYPLOT

2014-11-20 Thread David Winsemius
On Nov 20, 2014, at 8:10 AM, Anthony Damico wrote: > survey:::svyplot.default with style="grayhex" calls > hexbin:::gplot.hexbin > > an internet search turns up lots of people asking the question "how do i > set xlim and ylim on hexbin plots?" but i don't see any easy solutions. :/ Looking

Re: [R] SVYPLOT

2014-11-20 Thread Anthony Damico
survey:::svyplot.default with style="grayhex" calls hexbin:::gplot.hexbin an internet search turns up lots of people asking the question "how do i set xlim and ylim on hexbin plots?" but i don't see any easy solutions. :/ On Thu, Nov 20, 2014 at 10:31 AM, Raphael Fraser wrote: > Does not w

Re: [R] SVYPLOT

2014-11-20 Thread Raphael Fraser
Does not work when ,style="grayhex". library(survey) data(api) dstrat<-svydesign(id=~1,strata=~stype, weights=~pw, data=apistrat, fpc=~fpc) svyplot(api00~api99, design=dstrat, style="grayhex") svyplot(api00~api99, design=dstrat, style="grayhex", ylim=c(500, 700)) On Thu, Nov 20, 2014 at 9:19 AM,

Re: [R] SVYPLOT

2014-11-20 Thread Adams, Jean
Raphael I just ran an example from the help file, and the xlim argument worked fine. Can you post a small example where the xlim argument doesn't work? Jean library(survey) data(api) dstrat<-svydesign(id=~1,strata=~stype, weights=~pw, data=apistrat, fpc=~fpc) svyplot(api00~api99, design=dstrat,

[R] SVYPLOT

2014-11-19 Thread Raphael Fraser
How do I set the limits of my x and y axis in svyplot? xlim and ylim does not work. Regards, Raphael [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posti

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="

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 runn

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) mailto:h...@cdc.gov

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"

[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 somethi

Re: [R] svyplot

2012-10-10 Thread Muhuri, Pradip (SAMHSA/CBHSQ)
Dear Anthony, You have been so so helpful! The par() example code has worked well. Thanks, Pradip From: Anthony Damico [ajdam...@gmail.com] Sent: Wednesday, October 10, 2012 5:25 PM To: Muhuri, Pradip (SAMH/CBHSQ) Cc: R help Subject: Re: [R] svyplot

Re: [R] svyplot

2012-10-10 Thread Anthony Damico
https://stat.ethz.ch/pipermail/r-help/2012-October/324944.html On Wed, Oct 10, 2012 at 5:05 PM, Muhuri, Pradip (SAMHSA/CBHSQ) < pradip.muh...@samhsa.hhs.gov> wrote: > Hello, > > Using the svyplot () function, I have plotted four graphs that are saved > in four different .png files. > > I am look

[R] svyplot

2012-10-10 Thread Muhuri, Pradip (SAMHSA/CBHSQ)
Hello, Using the svyplot () function, I have plotted four graphs that are saved in four different .png files. I am looking for examples how to redraw the same four graphs within grid viewports so that they stay together on a page. The goal is to create one .png file that will include all four