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)) library(plotrix) boxed.labels(c(height[1,]/2,height[1,]+height[2,]/2), rep(barpos,2),c(height[1,],round(height[2,],1))) Jim ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.