[R] title in bold - simple question in R 1.9.0

Deepayan Sarkar deepayan at stat.wisc.edu
Thu Oct 7 16:01:22 CEST 2004


On Thursday 07 October 2004 08:39, Bruno Cutayar wrote:
> Hi,
> how can i write this simple sentence : "Hello world" with "Hello"
> only in bold ?
> I try
>
>  > plot(1:5)
>  > title(main=paste(expression(bold("Hello")),"world",sep=" "))
>
> but the result is wrong.

This seems to work:

title(main = expression(bold("Hello") ~ "world"))

Deepayan




More information about the R-help mailing list