Displaying 1 result from an estimated 1 matches for "stuffa".
Did you mean:
stuff
2010 Nov 08
1
Add text to a stacked barplot
...ould like to put text to each level in the stacked
barplot. However, it seems that the code that I am using is not placing the
text at the correct hight (centered at each fill) in the barplot. Any
suggestions to improve the code to make it work?
barchart(FREQ ~ VISIT |which*as.factor(TRTN), data = stuffa,par.strip.text =
list(cex = 0.35),
groups = RES, xlab="Visit",ylab="Frequency",
layout = c(4,2),
par.settings=list(superpose.polygon=list(col=colors()[c(636,96,256,92,27,376)])),
stack = T,
auto.key = list(points = FALSE, rectangles = TRUE,
space = "top"),
scales = lis...