[R] Combining a greek letter and a newline on the same label

2011-08-25 Thread Sébastien Vigneau
Hi, I would like to add a two-lines label consisting of: Delta word1\n word2 (with Delta being the actual greek letter). However, when I try expression(paste(Delta,word1\nword2)), I obtain the following display: word1\n Delta word2. Do you have any idea on how to obtain the desired display?

Re: [R] Combining a greek letter and a newline on the same label

2011-08-25 Thread Sébastien Vigneau
Thank you very much for the detailed explanations, and sorry for being vague in my question. atop is what I needed :) Sebastien On Thu, Aug 25, 2011 at 11:59 AM, David Winsemius dwinsem...@comcast.netwrote: On Aug 25, 2011, at 11:23 AM, Sébastien Vigneau wrote: Hi, I would like to add

Re: [R] Two-levels labels on x-axis?

2011-08-24 Thread Sébastien Vigneau
) axis(side=1,at=c(1,3,5,7),labels=c(a,b,c,d),tick=FALSE) axis(side=1,at=c(2,6),labels=c(A,B),tick=FALSE,padj=2) Sebastien On Mon, Aug 22, 2011 at 6:33 PM, Sébastien Vigneau sebastien.vign...@gmail.com wrote: Thank you for your answer! I have two additional questions, in line with the previous

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

2011-08-22 Thread Sébastien Vigneau
Thanks! Sebastien 2011/8/20 Uwe Ligges lig...@statistik.tu-dortmund.de 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 examplehttp://thejns.org/**action/showPopup

[R] Two-levels labels on x-axis?

2011-08-22 Thread Sébastien Vigneau
Hi, I would like to draw a stacked bar chart with four bars (say a, b, c, d) . Two bars belong to group A and the two others to group B. Therefore, I would like to have, on the x-axis, a label for each bar and an additional label for each group, positioned underneath. To give an idea, the x-axis

Re: [R] Two-levels labels on x-axis?

2011-08-22 Thread Sébastien Vigneau
Thanks! Sebastien On Mon, Aug 22, 2011 at 2:11 PM, Marc Schwartz marc_schwa...@me.com wrote: On Aug 22, 2011, at 12:14 PM, Sébastien Vigneau wrote: Hi, I would like to draw a stacked bar chart with four bars (say a, b, c, d) . Two bars belong to group A and the two others to group B

Re: [R] Two-levels labels on x-axis?

2011-08-22 Thread Sébastien Vigneau
, labels = letters[1:4]) axis(1, at = c(mean(p[1:2]), mean(p[3:4])), labels = paste(\n, LETTERS[1:2]), padj = 1) Cheers, Josh On Mon, Aug 22, 2011 at 10:14 AM, Sébastien Vigneau sebastien.vign...@gmail.com wrote: Hi, I would like to draw a stacked bar chart with four bars (say a, b

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

2011-08-19 Thread Sébastien Vigneau
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 examplehttp://thejns.org/action/showPopup?citid=citart1id=f3-1060501doi=10.3171%2Fped.2007.106.6.501of the type of display I would like to have. Is there a way to draw the