[R] [Q] How to make a multi-line title with expression()

Sundar Dorai-Raj sundar.dorai-raj at pdf.com
Wed Mar 29 00:28:58 CEST 2006



Young-Jin Lee wrote:
> Dear R-lister
> 
> Could anyone know how to make a multi-line title for a plot with
> expression()?
> In my plot, the title should be writeen in two lines (because it is two long
> for one line) and it should use a mathematical expression. I tried to use
> "\n", but "\n" is ignored in expression() call:
> hist(diffChangeRequestHintsBeforeAnswering[,4], br = 50, xlab = "Skill
> Change in Standard Deviation", main = expression(paste("(a) H&S", F[A],
> "\nRequest hint(s)/subtask(s) before first attempt")))
> 
> Thanks in advance.
> 
> Young-Jin Lee
> 

Try RSiteSearch("multi-line expression").

Thanks,

--sundar




More information about the R-help mailing list