a <-c(3,2,2,2,1,2)
barplot(a, beside =T,
col =1:6, space =c(0,2))
legend("topright", legend =c("a","b","c","d","e","f"), fill =1:6, ncol =2)
- Sergio.pv
1个回答
47
47
< p > cex 参数可以为您完成此操作。
a <-c(3,2,2,2,1,2)
barplot(a, beside =T,
col =1:6, space =c(0,2))
legend("topright",
legend =c("a","b","c","d","e","f"),
fill =1:6, ncol =2,
cex =0.75)
cex
的值调大一点,然后再使用pt.cex
和title.cex
。请查看legend
函数的帮助文档,输入?legend
即可。 - Anders Ellern Bilgrau