Dear Dr. Carbon,
Perhaps (not lattice):
barplot(t(foo),beside=TRUE,col=rainbow(6),ylim=c(0,max(foo)),names.arg=paste('Question',1:3),
ylab='Your title here',xlab='Your title here')
legend('topleft',colnames(foo),pch=15,col=rainbow(6),ncol=2,cex=1.1)
HTH,
Jorge
On Mon, Nov 17, 2008 at 3:40 PM
I have a data.frame containing survey data that is already organized
like a table:
> foo
Excellent Very Good Good Fair Poor Very Poor
Question 1 8 7300 0
Question 2 5 5710 0
Question 3 71010
2 matches
Mail list logo