Re: [R] legend: bold and color of border

From: Thomas Steiner <>
Date: Sat, 15 Mar 2008 17:52:16 +0100

Hi Jim,

thank you very much for your answers!

> > How do I write bold face in the legend - the function does not accept
> > font=2 as argument?

> par(font=2)

perfect, thanks.

> > How do I plot a legend box with a background color, but not a border?
> > Or, better: How do I specify the color of the legend-box-borderline?

> before calling legend.
> If you just want a label as in your example, it might be easier to use:
> boxed.labels(strptime("01/02/02","%d/%m/%y"),1.5,
> "Beeblebrox",bg="lightblue",border=FALSE,col="white")

unfortunately this does not work. In the new code on I included the following:

which gives a much too smal box.
Perhaps the boxsize is not adjusted if the "cex" argument is used for the text?

Have a nice weekend,
Thomas mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Sat 15 Mar 2008 - 17:02:41 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 15 Mar 2008 - 17:30:22 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive