[R] Buglet in plotCI
Jim Lemon
jim at bitwrit.com.au
Mon Apr 20 11:20:45 CEST 2009
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
More information about the R-help
mailing list