[R] Different fonts on the same axis
Peter Alspach
Peter.Alspach at plantandfood.co.nz
Mon Nov 23 20:49:39 CET 2009
Tena koe Michelle
?plotmath
For your particular example, try:
plot(1:10, 1:10, pch=16, xlab="metric", ylab=quote(~italic(species)~ '
CPUE'))
Depending on your default font, you might need to set the family
argument of par():
par(family='serif')
HTH ....
Peter Alspach
> -----Original Message-----
> From: r-help-bounces at r-project.org
> [mailto:r-help-bounces at r-project.org] On Behalf Of MichelleJ
> Sent: Tuesday, 24 November 2009 6:28 a.m.
> To: r-help at r-project.org
> Subject: [R] Different fonts on the same axis
>
>
> Hi,
>
> I need to have both italics and standard font on the y axis.
> This is my script:
> plot(x,y,pch=16,xlab="metric",ylab="species CPUE")
>
> I want species in italics and CPUE in standard text.
> Any tips would be appreciated.
> Thanks.
> --
> View this message in context:
> http://old.nabble.com/Different-fonts-on-the-same-axis-tp26482
> 460p26482460.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org 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