I've been trying to make a barchart with varying bar color
dependant on a categorical variable in a data frame.
I started with the dotplot generated by
dotplot(NAME ~ FREQUENCY| TREATMENT,
data=dc.ind.data,
layout=c(4,1,1),
groups=DIFFERENCE,
panel=function (x,y,...) {
dot.line <- trellis.par.get('dot.line')
abline(h=unique(y),lwd=1,lty=dot.line$lty)
panel.superpose(x,y,...,col=c(6,8,1,1,1),pch=16)
}
)
and tried to make an analogous barchart, but I cannot use the
'groups' argument in barchart() without getting the message
"Error in polygon: invalid argument name: subscripts
Dumped"
panel.barchart is calling polygon(), so I'm trying to
write around it, but thus far I've not been able to get
colorings to correspond to the correct bars.
TIA,
Greg
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news
|