Thanks Jim, Yes its working now.
Thanks, Himanshu On Wed, Aug 8, 2012 at 12:10 PM, Jim Lemon <j...@bitwrit.com.au> wrote: > On 08/07/2012 10:57 PM, mhimanshu wrote: > >> Hello Everyone, >> >> I am trying to overlap a plot with a data set in the form of a data frame. >> >> Its very easy to overlap the data using "points" function. But the only >> problem I am facing is "Standard deviation bar" on the plot. >> >> data<- data.frame( >> x = c(3.00,2.00,3.80,2.40,2.00), >> error = c(0.0,0.4,1.1,0.7,0.5) >> ) >> >> I tried plotrix, segments but they are making a new plot with data points >> n >> error bar. >> I want to Overlap this data sets on a plot with its Error bar. >> >> Hi Himanshu, > Have you tried the following? > > plot(data$x,ylim=c(1,5)) > library(plotrix) > dispersion(1:5,data$x,data$**error) > > and "data" is probably not the best name for your data frame. > > Jim > -- With Regards: Himanshu Doctorate Student, Leibniz Institute for Natural Product Research and Infection Biology e.V. Hans-Knöll-Institute (HKI) FSU, Jena Germany Contact: 0176 56526087 0151-63327536 email: bioinfo.himan...@gmail.com P.S: All good things come to those who wait..!! [[alternative HTML version deleted]]
______________________________________________ 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.