Try this:

plot(1, type = 'n')
rect(0.8, 0.8,
     0.8 + strwidth('test'),
     0.8 + strheight('test'), col = 'red', border = 'red')

text(0.8 + 0.021, 0.8 - 0.015, 'test', pos = 3)

On Wed, Oct 6, 2010 at 8:38 AM, Aishe Brei <aishe.b...@hotmail.de> wrote:

>
>
> <!--
>  /* Font Definitions */
>  @font-face
>        {font-family:"Cambria Math";
>        panose-1:2 4 5 3 5 4 6 3 2 4;
>        mso-font-charset:1;
>        mso-generic-font-family:roman;
>        mso-font-format:other;
>        mso-font-pitch:variable;
>        mso-font-signature:0 0 0 0 0 0;}
> @font-face
>        {font-family:Calibri;
>        panose-1:2 15 5 2 2 2 4 3 2 4;
>        mso-font-charset:0;
>        mso-generic-font-family:swiss;
>        mso-font-pitch:variable;
>        mso-font-signature:-520092929 1073786111 9 0 415 0;}
>  /* Style Definitions */
>  p.MsoNormal, li.MsoNormal, div.MsoNormal
>        {mso-style-unhide:no;
>        mso-style-qformat:yes;
>        mso-style-parent:"";
>        margin-top:0cm;
>        margin-right:0cm;
>        margin-bottom:10.0pt;
>        margin-left:0cm;
>        line-height:115%;
>        mso-pagination:widow-orphan;
>        font-size:11.0pt;
>        font-family:"Calibri","sans-serif";
>        mso-ascii-font-family:Calibri;
>        mso-ascii-theme-font:minor-latin;
>        mso-fareast-font-family:Calibri;
>        mso-fareast-theme-font:minor-latin;
>        mso-hansi-font-family:Calibri;
>        mso-hansi-theme-font:minor-latin;
>        mso-bidi-font-family:"Times New Roman";
>        mso-bidi-theme-font:minor-bidi;
>        mso-fareast-language:EN-US;}
> .MsoChpDefault
>        {mso-style-type:export-only;
>        mso-default-props:yes;
>        mso-ascii-font-family:Calibri;
>        mso-ascii-theme-font:minor-latin;
>        mso-fareast-font-family:Calibri;
>        mso-fareast-theme-font:minor-latin;
>        mso-hansi-font-family:Calibri;
>        mso-hansi-theme-font:minor-latin;
>        mso-bidi-font-family:"Times New Roman";
>        mso-bidi-theme-font:minor-bidi;
>        mso-fareast-language:EN-US;}
> .MsoPapDefault
>        {mso-style-type:export-only;
>        margin-bottom:10.0pt;
>        line-height:115%;}
> @page WordSection1
>        {size:595.3pt 841.9pt;
>        margin:70.85pt 70.85pt 2.0cm 70.85pt;
>        mso-header-margin:35.4pt;
>        mso-footer-margin:35.4pt;
>        mso-paper-source:0;}
> div.WordSection1
>        {page:WordSection1;}
> -->
>
>
> I’m trying
> to label different graphs within a plot. I used text() which worked ok, but
> is
> there a way to change the background within text() so that the part of the
> graph where the label is, is covert?
>
> Thank you
> for your help,
>
> Aishe B.
>
>
>
> ______________________________________________
> R-help@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.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to