[R] Using roman and italic fonts in an xlab expression for a plot

Gabor Grothendieck ggrothendieck at gmail.com
Fri Nov 24 13:51:50 CET 2006


or even shorter:

plot(1, xlab = "Level is" ~ italic(M))


On 11/23/06, Gabor Grothendieck <ggrothendieck at gmail.com> wrote:
> Try this:
>
>  plot(1, xlab = quote("Level is" ~ italic(M)))
>
> or
>
>   plot(1, xlab = quote(Level ~ is ~ italic(M))
>
>
> On 11/23/06, Philip Boland <philip.j.boland at ucd.ie> wrote:
> > Just wondering if it is possible to put something like
> >
> > "The excess level is M"
> >
> > in the xlab position of a plot but where the M is in italic font and
> > the rest in ordinary (or Roman) font.
> >
> > Thanks - Phil Boland
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> >
>



More information about the R-help mailing list