Re: [R] [lattice] densityplot label the peak.

2010-11-12 Thread Chris Campbell
On Thu, Nov 11, 2010 at 11:45, Joon Yeong Kim wrote: > I tried using panel function but wasn't sure how to get the y value for the > peak of the densityplot. > > I'm thinking there should be a way to retrieve the densityplot object so > that I can get the (x,y) values of the curve directly from t

Re: [R] [lattice] densityplot label the peak.

2010-11-11 Thread Joon Yeong Kim
I tried using panel function but wasn't sure how to get the y value for the peak of the densityplot. I'm thinking there should be a way to retrieve the densityplot object so that I can get the (x,y) values of the curve directly from the object. Anyone know how to do this? Thank you. Joon On Th

Re: [R] [lattice] densityplot label the peak.

2010-11-10 Thread baptiste auguie
Hi, The easiest way might be the directlabels package from R-forge. Otherwise, you could write your own panel function. HTH, baptiste On 10 November 2010 23:01, Joon Yeong Kim wrote: > Hi, > > I've been trying to find a way to label the the peak or mean of a > densityplot for a while but have

[R] [lattice] densityplot label the peak.

2010-11-10 Thread Joon Yeong Kim
Hi, I've been trying to find a way to label the the peak or mean of a densityplot for a while but haven't been successful. Does anyone know how to accomplish this? Thank you for your help in advance. Joon [[alternative HTML version deleted]] __