Skip to content

text command - how to get a white background to cover grid lines

2 messages · Levi Waldron, Jim Lemon

#
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)
    * 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).
On Mon, Feb 6, 2012 at 10:56 PM, <538280 at gmail.com> wrote:
#
On 09/07/2012 07:30 AM, Levi Waldron wrote:
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)
However, shadowtext does the job just as well.

Jim