[R] plotting with R

Frank E Harrell Jr feh3k at spamcop.net
Tue May 4 01:50:34 CEST 2004


On Mon, 3 May 2004 19:14:26 -0400
"Liaw, Andy" <andy_liaw at merck.com> wrote:

> > From: Karla Meurk
> > 
> > (2) If I have three curves on a plot how can I label each curve so the
> >  > label sits directly above the curve?
> > 
> > 
> > [A]As to your second question: I don't think there will be a simple
> > answer because
> > 	on has to decide where "above" is. Could you please be more
> > specific?
> 
> I believe Prof. Harrell has something that places labels for curves in
> `strategic' places in the plot, in his `Hmisc' package.  Maybe it's only
> for Trellis graphics?

The labcurve function in Hmisc works for both trellis and standard
graphics.  It has many label placement options.

Frank

> 
> Andy
> 
>  
> > 	Dietrich
> > 
> > I have a picture of S+ output which has the label sitting on 
> > top of each 
> > curve and curving with it -does that make sense?
> > 
> > Thanks for your help
> > Carla

---
Frank E Harrell Jr   Professor and Chair           School of Medicine
                     Department of Biostatistics   Vanderbilt University




More information about the R-help mailing list