Hello R-help, I am using R version 2.15.1. I upgraded from R version 2.13 a few months back. Previously, I was able to plot error bars on an xy scatter plot using the errbar function: errbar(RAEthylene$TIME,RAEthylene$AVE,RAEthylene$AVE+RAEthylene$STD,RAEthylene$AVE-RAEthylene$STD,add = TRUE,lty=2,pch=17); Today, I went to update my plot. However, in R version 2.15.1 I get error code saying that this function cannot be found: Error: could not find function "errbar" I would perfer to avoid using the xy.error.bars<-function(x, y, xbar, ybar) coding for these error bars, as I have many data to put on one plot. I've searched the .pdf file for R 2.15.1 version and cannot find any updates for this function. Do I have to reinstall version 2.13 again?? I need to generate these plots today!! Please advise. Regards, Franklin [[alternative HTML version deleted]]
On Oct 25, 2012, at 2:45 PM, Johnson, Franklin Theodore wrote:> Hello R-help, > > > > I am using R version 2.15.1. > > I upgraded from R version 2.13 a few months back. > > > > Previously, I was able to plot error bars on an xy scatter plot using the errbar function: > > errbar(RAEthylene$TIME,RAEthylene$AVE,RAEthylene$AVE+RAEthylene$STD,RAEthylene$AVE-RAEthylene$STD,add = TRUE,lty=2,pch=17); > > > > Today, I went to update my plot. > > However, in R version 2.15.1 I get error code saying that this function cannot be found: > > Error: could not find function "errbar" > > I would perfer to avoid using the xy.error.bars<-function(x, y, xbar, ybar) coding for these error bars, as I have many data to put on one plot. > > I've searched the .pdf file for R 2.15.1 version and cannot find any updates for this function. > > Do I have to reinstall version 2.13 again??There is no base::errbar function. You probably were using a package and have not yet reinstalled that package under the new version of R. When I run sos::findFn('errbar') I see two packages (Hmisc and sfsmisc) with a function of that name. -- David Winsemius, MD Alameda, CA, USA
You have likely failed to install the required package or load the right library for the function you are trying to use. R 2.13 doesn't have an errbar function natively either, so there must have been such a package present in your R 2.13 installation. I have functions by that name in Hmisc and sfsmisc but I don't know whether either of those the one you were looking for; you'll have to go back to your code to see which library it used to load. S Ellison> -----Original Message----- > From: r-help-bounces at r-project.org > [mailto:r-help-bounces at r-project.org] On Behalf Of Johnson, > Franklin Theodore > Sent: 25 October 2012 22:46 > To: r-help at R-project.org > Subject: [R] error bars > > Hello R-help, > > > > I am using R version 2.15.1. > > I upgraded from R version 2.13 a few months back. > > > > Previously, I was able to plot error bars on an xy scatter > plot using the errbar function: > > errbar(RAEthylene$TIME,RAEthylene$AVE,RAEthylene$AVE+RAEthylen > e$STD,RAEthylene$AVE-RAEthylene$STD,add = TRUE,lty=2,pch=17); > > > > Today, I went to update my plot. > > However, in R version 2.15.1 I get error code saying that > this function cannot be found: > > Error: could not find function "errbar" > > I would perfer to avoid using the xy.error.bars<-function(x, > y, xbar, ybar) coding for these error bars, as I have many > data to put on one plot. > > I've searched the .pdf file for R 2.15.1 version and cannot > find any updates for this function. > > Do I have to reinstall version 2.13 again?? > > I need to generate these plots today!! > > > > Please advise. > > Regards, > > Franklin > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. >******************************************************************* This email and any attachments are confidential. Any use...{{dropped:8}}