[R] text command - how to get a white background to cover grid lines
Jim Lemon
jim at bitwrit.com.au
Fri Sep 7 12:19:07 CEST 2012
On 09/07/2012 07:30 AM, Levi Waldron wrote:
> For posterity, I found the TeachingDemos::shadowtext option most
> agreeable for this problem:
>
> * legend puts a large box around the text which did not seem
> possible to shrink, and does not accept vector x, y arguments
> * plotrix::boxed.labels did not work with pos=4 (this moved the
> text, but not the box)
True, boxed.labels just passes arguments such as "pos" to the "text"
function. You probably want something like:
boxed.labels(15,5200,"Air Flow",bg="white",border=NA)
> * TeachingDemos::shadowtext puts an opaque "shadow" around the
> text, rather than a box, which obscures a minimum of background while
> still making the labels readable. col="black", bg="white" options
> produced this effect (default options are opposite this).
>
However, shadowtext does the job just as well.
Jim
More information about the R-help
mailing list