[R] How to add horizontal lines above bar graph to display p-values?

Uwe Ligges ligges at statistik.tu-dortmund.de
Sat Aug 20 15:41:22 CEST 2011



On 19.08.2011 22:27, Sébastien Vigneau wrote:
> Hi,
>
> I would like to draw horizontal lines above a bar graph, in order to display
> the p-values of a Fisher test. Here is an
> example<http://thejns.org/action/showPopup?citid=citart1&id=f3-1060501&doi=10.3171%2Fped.2007.106.6.501>of
> the type of display I would like to have. Is there a way to draw the
> horizontal lines

See ?abline, ?lines, ?segments, ....


> and write their associated p-values in R?

See ?text

Uwe Ligges


>
> Thanks for you help!
>
> Sebastien Vigneau
>
> 	[[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