[R] changing font to italic for one entry in legend()

Vikram Chhatre crypticlineage at gmail.com
Fri Jun 8 02:27:00 CEST 2012


Hello,

I need to change the font for one of the items (C. elegans) in my
legend to italic.  Can someone suggest how to accomplish this?

legend('bottomright', bty='n', c('C. elegans range', 'Study area'),
cex=0.8, fill=c('light gray', 'white'), border=c('black','black'))

I tried using lab.font=c(1,3) but R ignored and did not write the legend at all.

Any advice would be great.

Thanks.
V



More information about the R-help mailing list