[R] Buglet in plotCI

Derek Ogle DOgle at northland.edu
Mon Apr 20 14:04:24 CEST 2009


Jim and Dieter,

Thank you for the quick reply and precise fix.  My plot now works as
expected.  Thanks again.


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Jim Lemon
> Sent: Monday, April 20, 2009 4:21 AM
> To: dieter.menne at menne-biomed.de; r-help at r-project.org
> Subject: Re: [R] Buglet in plotCI
> 
> Dieter Menne wrote:
> > Hi, Jim,
> >
> > there is a typo at the bottom of plotCI: there is an y.to.in which
> should be
> > x.to.in.
> >
> > See list for an example.
> >
> > http://article.gmane.org/gmane.comp.lang.r.general/147103
> >
> > Should be:
> >         nz <- (abs(ui - pmin(x + gap, ui)) * x.to.in) > 0.001
> >
> > Dieter
> >
> >
> Hi Dieter,
> Thanks for the fix. I have changed the source code and it will be in
> the
> next version. For the benefit of those who can't wait:
> 
> 1) make a copy of the source code like this:
> 
> sink("newplotCI.R")
> cat("plotCI<-")
> plotCI
> sink()
> 
> 2) Open "newplotCI.R" in Your Favorite Editor.
> 
> 3) Edit line 75 as above.
> 
> 4) Save "newplotCI.R"
> 
> 5) Overwrite the plotCI function in plotrix (temporarily):
> 
> library(plotrix)
> source("newplotDI.R")
> 
> Jim
> 
> ______________________________________________
> R-help at r-project.org mailing list
> 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