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

538280 at gmail.com 538280 at gmail.com
Tue Feb 7 04:56:45 CET 2012


An alternative is the shadowtext function in the TeachingDemos package.

On Mon, Feb 6, 2012 at 1:19 AM, Jim Lemon <jim at bitwrit.com.au> wrote:
> On 02/06/2012 08:23 AM, Henry wrote:
>>
>> New to R - rookie question.
>> I'm a mechanical engineer and enjoying using R to make high quality
>> graphs.
>>
>> I've searched.
>>
>> I want to put text notation on graph plot areas and have the text
>> background
>> "box" white to cover over the grid lines.
>>
>> my command so far....
>> text(15,5200,"Air Flow",cex=.8,col="blue", background="white") # this
>> doesn't work...
>>
>> I've tried bg="white", background color="white" and a number of other
>> attempts.
>>
>> The text is getting placed on the chart where I want it.
>>
> Hi Henry,
> have a look at the boxed.labels function in the plotrix package.
>
> Jim
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



-- 
Gregory (Greg) L. Snow Ph.D.
538280 at gmail.com



More information about the R-help mailing list