Re: [R] Add text to a stacked barplot

2010-11-10 Thread Ashraf Yassen
Hi Dennis, Yes indeed. But when I apply panel.text then the text is not nicely centered in each bar. KR, Ashraf On Wed, Nov 10, 2010 at 3:31 AM, Dennis Murphy wrote: > Hi: > > Did you mean > > panel.text(x,y/2,label = round(y,3),cex=1) > > ?? > > HTH, > Dennis > > On Tue, Nov 9, 2010 at 1:11

Re: [R] Add text to a stacked barplot

2010-11-09 Thread Dennis Murphy
Hi: Did you mean panel.text(x,y/2,label = round(y,3),cex=1) ?? HTH, Dennis On Tue, Nov 9, 2010 at 1:11 AM, Ashraf Yassen wrote: > Dear All, > > Now with data. Any suggestion how to center the text in the filling would > be > appreciated. > > Kind regards, > Ashraf > > library(lattice) > a<-c(

Re: [R] Add text to a stacked barplot

2010-11-09 Thread Ashraf Yassen
Dear All, Now with data. Any suggestion how to center the text in the filling would be appreciated. Kind regards, Ashraf library(lattice) a<-c(100,100,93.57,50,0,0,6.43,50) b<-c(1,1,1,1,0,0,0,0) VISIT<-c(1,2,3,4,1,2,3,4) VISIT<-as.character(VISIT) stuffd<-data.frame(FREQ=a, VISIT=VISIT, RES=b)

Re: [R] Add text to a stacked barplot

2010-11-08 Thread RICHARD M. HEIBERGER
Please post some data (fake data is fine) for stuffa. The example doesn't execute as is. Rich On Mon, Nov 8, 2010 at 10:27 AM, Ashraf Yassen wrote: > Hi All, > > I need some help in putting text in a stacked barplot. The barplot is > filled > with 5 levels and now I would like to put text to