[R] error bar position setting

From: Yogesh Tiwari <yogesh.mpi_at_googlemail.com>
Date: Tue, 22 Jan 2008 16:47:37 +0530


Hi,

I am using R on Windows XP.

I am using 'arrows' funtion to plot the variance as error bar, BUT error bar goes only one side of the data point, I need to plot the error bar on both side of the data point (plot is attached), I am using following commands to plot,

plot(file3$lat,file3$STotwoKm,pch=21,cex=2.5,ylim=c(-0.2,2.5),xlim=c(-50,50),xlab=NA,ylab=NA, col=1, xaxs="i",yaxs="i")

arrows(file3$lat, file3$var1, file3$lat,file3$STotwoKm, col=1, code=3, angle=90, length=0.1)

Here: lat=latitte (x-axis)

          STotwoKm = Data values (y-axis)
          Var1 = Variance

Kindly help how I can plot error bar on both side of data point,

Many thanks,

Regards,
Yogesh

-- 
Yogesh K. Tiwari (Dr.rer.nat),
Scientist,
Indian Institute of Tropical Meteorology,
Homi Bhabha Road,
Pashan,
Pune-411008
INDIA

Phone: 0091-99 2273 9513 (Cell)
         : 0091-20-258 93 600 (O) (Ext.250)
Fax    : 0091-20-258 93 825

______________________________________________ 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.

Received on Tue 22 Jan 2008 - 11:28:41 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 22 Jan 2008 - 11:30:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive