[R] how to represent error bar in a plot legend?
John Kane
jrkrideau at yahoo.ca
Wed Sep 1 21:24:32 CEST 2010
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.Kardos at phila.gov <Josef.Kardos at phila.gov> wrote:
> From: Josef.Kardos at phila.gov <Josef.Kardos at phila.gov>
> Subject: [R] how to represent error bar in a plot legend?
> To: r-help at 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 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.
>
More information about the R-help
mailing list