Hi
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
project.org] On Behalf Of Ahmed Attia
Sent: Saturday, July 19, 2014 1:28 AM
To: William Dunlap
Cc: r-help
Subject: Re: [R] Fwd: Plot the means with simultaneous horizontal and
vertical error bars
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
You could try plotCI from the plotrix package.
Note that most attachments are stripped; dput() is the preferred way
to include data.
Sarah
On Fri, Jul 18, 2014 at 4:41 PM, Ahmed Attia ahmedati...@gmail.com wrote:
Dear R users,
I would appreciate your help in plotting the means with
Did you read the help?
err: The direction of error bars: x for horizontal, y for
vertical (xy would be nice but is not implemented yet;
don't know quite how everything would be specified. See
examples for composing a plot with simultaneous horizontal
On Fri, Jul 18, 2014 at 5:38 PM, Ahmed Attia ahmedati...@gmail.com wrote:
Yes, I saw this but I can't translate it to a code.
http://svitsrv25.epfl.ch/R-doc/library/Hmisc/html/errbar.html
Why are you reading the help for Hmisc::errbar when I suggested (and
copied and pasted for you!) the
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,
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)
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
My problem is getting x and y into the PlotCI. I do not know how to use the
dput(). But below is my data;
x x-Water y 150 74.67 75 150 92.2 97 150 138.2 327.5 150 140.2 142.6
150 194.82 333.8 150 226.31 423 150 226.56 590.9 150 240.28 546.6 150
241.55 232.3 150 243.07 454.6 350 252.7
In the package phenology (in CRAN), I add a function plot_errbar:
plot_errbar(..., errbar.x = NULL, errbar.y = NULL, errbar.x.plus = NULL,
errbar.x.minus = NULL, errbar.y.plus = NULL, errbar.y.minus = NULL,
x.plus = NULL, x.minus = NULL, y.plus = NULL, y.minus = NULL,
errbar.tick = 1/50,
10 matches
Mail list logo