[R] Title

David Winsemius dwinsemius at comcast.net
Tue Feb 8 18:25:57 CET 2011


On Feb 8, 2011, at 11:43 AM, kateF87 wrote:

>
> I have a relatively simple question.
>
> I am trying to post a title to a plot using a symbol and multiple  
> lines.
> Right now I have:
>
> title(main = c('Hazard Ratio for women with score', expression('>='),
> 'Across /nQuintiles of Activity')

I am going to anticipate the next question, which I assume to be how  
to insert a value after the ">=" sign:

 > b=5
 > plot(1,1)
 > title(main = bquote(atop(paste("Hazard Ratio for women with score",  
"">=.(b)) , "Across Quintiles of Activity") ) )

-- 
David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list