Skip to content
Back to formatted view

Raw Message

Message-ID: <432023CA.1050109@ozemail.com.au>
Date: 2005-09-08T11:43:06Z
From: Jim Lemon
Subject: (no subject)
In-Reply-To: <200509070519.j875IvT2020123@hypatia.math.ethz.ch>

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