[R] Changing font type within y axis labels

2011-07-29 Thread Philip Boulcott
I wish place the following axis label in such a manner that some of the text is plain and the scientific name is in italics (i.e. a mixture of two font types) Using plot: mtext(Total Landings of Pecten maximus (tonnes),font,=3, side=2, line=3) makes everything italic, but how do I

Re: [R] Changing font type within y axis labels

2011-07-29 Thread Eik Vettorazzi
Hi Philip, have a look at ?plotmath and try mtext(expression(paste(Total Landings of~~italic(Pecten maximus),(tonnes))), side=2,line=2) ~~ is used for extra space between plain and italic font, but that might be a matter of taste. hth. Am 29.07.2011 15:34, schrieb Philip Boulcott: I wish

Re: [R] Changing font type within y axis labels

2011-07-29 Thread David Winsemius
On Jul 29, 2011, at 10:10 AM, Eik Vettorazzi wrote: Hi Philip, have a look at ?plotmath and try mtext(expression(paste(Total Landings of~~italic(Pecten maximus),(tonnes))), side=2,line=2) ~~ is used for extra space between plain and italic font, but that might be a matter of taste. And the