[R] legend font

Tyler Smith tyler.smith at mail.mcgill.ca
Wed Feb 14 19:32:50 CET 2007


Hi,

I'd like to make the text in my legends italic, but I can't figure out
how to do so. font=3 doesn't work. Googling brings up the possibility
of expression(italic()), which produces italics, but I can't get this
to work with my label data, which is a vector of strings:

  legend(locator(1), legend = levels(factor(label.vector)),
         col = plotting.colours, pch =plotsym.bw, cex = 0.7 )

How can I do this?

-- 
Regards,

Tyler Smith



More information about the R-help mailing list