Re: [R] R graphics: Add labels to stacked bar chart

2010-09-02 Thread Jim Lemon
On 09/02/2010 08:50 PM, Jens Oldeland wrote: > ... > I am looking for a way to add labels, i.e. absolute values, into a > stacked bar chart using the basic plot functions of R. The labels > should be inside the stacked bars. barpos<-barplot(height,beside = FALSE, horiz=TRUE,col = c(2, 3)) librar

[R] R graphics: Add labels to stacked bar chart

2010-09-02 Thread Jens Oldeland
Hi, I am looking for a way to add labels, i.e. absolute values, into a stacked bar chart using the basic plot functions of R. The labels should be inside the stacked bars. For example, ### I have this dataset height = cbind(x = c(465, 91) / 465 * 100, y = c(840, 200)