[R] (no subject)

Jim Lemon bitwrit at ozemail.com.au
Thu Sep 8 13:43:06 CEST 2005


Salang Pan wrote:
> hi£¬
>   
>   Is it possible to draw a string text in a rectangle according the width of this rectangle?   that is, the fontsize of this string text can be adjusted according the width of the rectangle.
>  How to set the cex parameter in text function? 
> 
> text (x, y = NULL, labels = seq(along = x), adj = NULL,
>           pos = NULL, offset = 0.5, vfont = NULL,
>           cex = 1, col = NULL, font = NULL, xpd = NULL, ...)
> 
Hi Salang,

Have a look at boxed.labels() and textbox() in the plotrix package.

Jim




More information about the R-help mailing list