Displaying 1 result from an estimated 1 matches for "muscskel".
2011 Aug 04
1
labelling a stacked barchart (lattice)
...bar fill with the brewer palette? I know I can alter this w/ heat.~, topo.~, cm.colors, etc.
Thanks in advance.
Marc
Using R for Mac OS X GUI 1.40-devel Leopard build 64-bit
dta <- data.frame(x=c(46.0, 14.7, 16.4, 15.8, 7.0), y=c("Back", "Neck", "Extrem", "MuscSkel", "Oth"))
dta
barchart(data=dta, ~x, group=y, stack=T, col=sort(brewer.pal(7,"Purples")),
xlab="Percent", box.width=.5, scales=list(tick.number=10))