[R] Produce single line graph title composed of text and computed values.

Sarah Goslee sarah.goslee at gmail.com
Mon Aug 10 17:40:33 CEST 2009

You need to use paste() instead of c().


On Mon, Aug 10, 2009 at 11:35 AM, John
Sorkin<jsorkin at grecc.umaryland.edu> wrote:
> R 2.81
> Windows XP
> I am trying to produce a title that combines:
> text, a computed value, text,  a computed value
> The title contains everything I want, but each element of the title is on a separate line, i.e. my title is five lines long. Is there anyway I can force the entire title to be on the same line? The problem is not the length of the title; it is short enough to fit on a shingle line.
> My R code follows:
> title(c(text,"Corr=",round(corrln$estimate,2),"p=",round(corrln$p.value,2)))
> Thanks,
> John
Sarah Goslee

More information about the R-help mailing list