[R] legend font

Tyler Smith tyler.smith at mail.mcgill.ca
Wed Feb 14 21:12:26 CET 2007


On Wed, Feb 14, 2007 at 02:40:47PM -0500, Duncan Murdoch wrote:
> On 2/14/2007 1:32 PM, Tyler Smith wrote:
> >Hi,
> >
> >I'd like to make the text in my legends italic, 

...

> >How can I do this?
> 
> This should work:
> 
> plot(1,1)
> savefont <- par(font=3)
> legend("topright", legend=c('Label 1', 'Label 2'), pch=1:2)
> par(savefont)
> 

Thanks! I don't understand it yet, but it does indeed work.


-- 
Regards,

Tyler Smith



More information about the R-help mailing list