[R] color problem barplot

Abdoulaye SARR abdoulayesar at gmail.com
Mon Jul 18 13:31:17 CEST 2016


I am doing a basic bar plot which works but the color of bars positive (green) and negative (brown) don’t show up from the below command:

barplot(z, ylim=c(-2,2), col=ifelse(x>0,"brown","green »))

any help? or other methods?

asarr


More information about the R-help mailing list