As @otsaw said in his answer to your earlier question, plotmath
(and therefore expression
) doesn't allow linebreaks.
However, as a hack, you can use atop
to let ≥80
appears on top of (N=10)
. But as you will soon see it doesn't match with the other labels:
labs <- c("0-9
(N=10)","10-29
(N=10)","30-49
(N=10)",
"50-64
(N=10)","65-79
(N=10)",
expression(atop(phantom(x) >=80, (N==10))))
So, as a further hack, you can pass the other labels as expressions:
labs <- c(expression(atop(0-9,(N==10))),expression(atop(10-29,(N==10))),
expression(atop(30-49,(N==10))), expression(atop(50-64,(N==10))),
expression(atop(65-79,(N==10))), expression(atop(phantom(x) >=80, (N==10))))
But of course you have @otsaw solution (using Unicode) that is considerably less wordy:
labs <- c("0-9
(N=10)","10-29
(N=10)","30-49
(N=10)",
"50-64
(N=10)","65-79
(N=10)",
"u2265 80
(N=10)")
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…