[R] Fwd: Plot the means with simultaneous horizontal and vertical error bars
William Dunlap
wdunlap at tibco.com
Sat Jul 19 00:30:23 CEST 2014
Is the original poster having trouble translating the synopsis at the
top of the help file to actual code? He should look at the examples
at the bottom of the help file, or better, run them with
example(plotCI)
and see if any of the plots looks close to what he wants.
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Fri, Jul 18, 2014 at 3:15 PM, Sarah Goslee <sarah.goslee at gmail.com> wrote:
> 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
>>
>>
>
> ______________________________________________
> 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