> Hello,
>
> a probably rather stupid question to which I can't find an answer:
>
> I have a bar chart, and I want to present which bars are significantly
> different by placing a line with an asterisk above then (similarly to fig. 3
> in: http://jnm.snmjournals.org/content/46/4/574.figures-only).
>
> Does anyone have a reference where can I find some instructions how to learn
> this?
>
> Thanks a lot!
> Omer
>

Re: Showing which bars in a bar chart are significantly different

On Wed, Jul 6, 2011 at 1:37 PM, omernevo <[hidden email]> wrote:
> Hello,
>
> a probably rather stupid question to which I can't find an answer:
>
> I have a bar chart, and I want to present which bars are significantly
> different by placing a line with an asterisk above then (similarly to fig. 3

I would highly recommend some reading about data visualizations
techniques (and while you're at it, something on significance
testing). Here are two:

I don't know of an automated way off hand. But, if you assign the
results of barplot() (I am assuming you are using traditional
graphics),

tmp <- barplot(rnorm(20))

tmp # has the locations on the x axis for each bar

now you could go to town with lines() (see ?lines for documentation)
to get those bracket thingies and text() to add the asterisks and
labels. Alternately, you could add asterisks and such just using
points()