[R] Fwd: Plot the means with simultaneous horizontal and vertical error bars
Sarah Goslee
sarah.goslee at gmail.com
Sat Jul 19 00:15:18 CEST 2014
The example given in ?plotCI works just fine for me. You'll need to be
more specific about what isn't working, and ideally provide some data
with dput().
Notice the add=TRUE argument in the second call to plotCI().
y<-runif(10)
err.x<-runif(10)
err.y<-runif(10)
plotCI(1:10,y,err.y,pt.bg=par("bg"),pch=21,xlim=c(0,11),
main="plotCI with extra space on the x axis")
plotCI(1:10,y,err.x,pt.bg=par("bg"),pch=21,err="x",add=TRUE)
Sarah
On Fri, Jul 18, 2014 at 6:06 PM, Ahmed Attia <ahmedatia80 at gmail.com> wrote:
> Hi all,
>
> I have been also trying the plotCI but it did not work out
>
> plotCI(x, y = NULL, uiw, liw = uiw, ui, li, err='y', ylim=NULL,
> xlim=NULL, type="p", col=par("col"), barcol=col,
> pt.bg = par("bg"), sfrac = 0.01, gap=1, lwd=par("lwd"),
> lty=par("lty"), labels=FALSE, add=FALSE, xlab, ylab, minbar,
> maxbar, ... )
>
>
> I searched and looked at the previous plotCI posts below;
>
>
>
> http://www.talkstats.com/showthread.php/51908-Vertical-and-horizontal-error-bars-PlotCI-errbar
>
>
> Dear R users,
>
> I would appreciate your help in plotting the means with simultaneous
> horizontal and vertical error bars. I use the lineplot.CI but it creates
> the vertical bars only.
>
>
> The attached file has the dataset that I want to graph. The (X) is the
> x-axis values and (y Lint) is the response in y-axis. Therefore, values in
> the x-axis would be 150, 350, 550, .....etc.
>
> At each value of the x-axis would be the average response point (y Lint)
> with vertical and horizontal error bars.
>
> Each value of the x-axis (X) represents a range of values that in x Water.
> The x Water column should be used to draw the horizontal lines.
>
> Thank you so much.
>
> AA
>
>
>
>
> Ahmed M. Attia
>
>
More information about the R-help
mailing list