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

2006-11-24 Thread Gabor Grothendieck
or even shorter:

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


On 11/23/06, Gabor Grothendieck <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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@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.
> >
>

__
R-help@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.


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

2006-11-23 Thread Gabor Grothendieck
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 <[EMAIL PROTECTED]> 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@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.
>

__
R-help@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.


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

2006-11-23 Thread David Barron
Something like:

xlab=expression(paste("The excess level is",italic(" M")))

in your plot command should do the trick.  See ?plotmath.

On 23/11/06, Philip Boland <[EMAIL PROTECTED]> 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@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.
>


-- 
=
David Barron
Said Business School
University of Oxford
Park End Street
Oxford OX1 1HP

__
R-help@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.


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

2006-11-23 Thread Philip Boland
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@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.