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 function plotCI from the plotrix package? The examples in ?plotCI demonstrate having horizontal and vertical error bars, as cited in the bit I copied and pasted for you. Please also reply all so your message returns to the R-help list, and not just to me, so others can participate and benefit. Sarah > > I looked at this but it produces the vertical bars only. > > AA > > Ahmed M. Attia > > > Research Assistant > Dept. of Soil&Crop Sciences > Texas A&M University > ahmed.at...@ag.tamu.edu > Cell phone: 001-979-248-5215 > FAX: 001-308-455-4024 > > > > On Fri, Jul 18, 2014 at 4:29 PM, Sarah Goslee <sarah.gos...@gmail.com> wrote: >> 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 >> and vertical error bars) >> >> Sarah >> >> On Fri, Jul 18, 2014 at 5:22 PM, Ahmed Attia <ahmedati...@gmail.com> wrote: >>> Sarah, >>> >>> PlotCI provides the vertical CI bars only. Do you have any idea? >>> >>> plotCI(x=means, uiw=ciw) >>> >>> # prettier >>> plotCI(x=means, uiw=ciw, col="black", barcol="blue", lwd=1) >>> >>> >>> AA >>> >>> Ahmed M. Attia >>> >>> >>> Research Assistant >>> Dept. of Soil&Crop Sciences >>> Texas A&M University >>> ahmed.at...@ag.tamu.edu >>> Cell phone: 001-979-248-5215 >>> FAX: 001-308-455-4024 >>> >>> >>> >>> On Fri, Jul 18, 2014 at 4:00 PM, Sarah Goslee <sarah.gos...@gmail.com> >>> wrote: >>>> 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 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 >>>>> >>>>> >>>>> >>>> >>>> -- >>>> Sarah Goslee >>>> http://www.functionaldiversity.org ______________________________________________ R-help@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.