[R] plotting multiple CIs
jim at bitwrit.com.au
Sat May 1 09:26:14 CEST 2010
On 05/01/2010 12:10 AM, Giovanni Azua wrote:
> I need to plot multiple confidence intervals for the same model parameter e.g. so for the same value of the parameter in point x_1 I would like to see four different confidence intervals so that I can compare the accuracy e.g. boot basic vs normal vs my own vs classic lm CI etc.
> I like very very much the plotCI implemented here:
> This is their example:
> y<- runif(10)
> err<- runif(10)
> plotCI(x=1:10,y=y,uiw=err,liw=2*err,lwd=2,col="red",scol="blue",main="Add colors to the points and error bars")
> but does not seem to support plotting multiple CIs but only one per point, is there a similar library somewhere but having the possibility to plot multiple CIs?
> I know there is the function "segment" but I like this one above more :)
Have a look at the dispersion function. You could just call it four
times with x positions stepped out as in the brkdn.plot or similar
functions (see the example for brkdn.plot to see what I mean).
More information about the R-help