回复 第2楼 的 谢益辉:又有新问题了...我把标签分行显示了,但是有些字跑到图形里去了..怎么办啊?
<br />
clustered=read.table("clustered.txt",header=T)<br />
a=t(cbind(clustered[,2],clustered[,3]))<br />
colnames(a)=gsub(' ','\\\n',clustered[,1])<br />
barplot(a,beside=T,legend=paste(colnames(clustered)[-1],c("(n=1476)","(n=1745)")))<br />
</p>
[attachment=203503,171]