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

[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

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

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