Can you give us a working example of what you are doing? I don't understand why you would need a pch symbol for an error bar. Perhaps if you are using an unboxed legend you could just use arrow() and text() to add the error bar to the legend?
--- On Wed, 9/1/10, josef.kar...@phila.gov <josef.kar...@phila.gov> wrote: > From: josef.kar...@phila.gov <josef.kar...@phila.gov> > Subject: [R] how to represent error bar in a plot legend? > To: r-help@r-project.org > Received: Wednesday, September 1, 2010, 2:56 PM > I have a simple barplot of 4 mean > values, each mean value has an > associated 95% confidence interval drawn on the plot as an > error bar. > I want to make a legend on the plot that uses the error bar > symbol, and > explains "95% C.I." > How do I show the error bar symbol in the legend? I > could not find any > "pch" values that are appropriate > > Thanks > [[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. > ______________________________________________ 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.