[R] probelm with xlab ylab and xaxp barplot
Abdoulaye SARR
abdoulayesar at gmail.com
Wed Jul 20 11:00:29 CEST 2016
I have the color of my bar plot displayed correctly but don’t have xlab, ylab and xaxp don’t show up.
here is example of yearly data (25 years 1981-2005)
> head(z1)
[1] -0.1001726 0.2014272 -0.8556950 0.1920669 -0.8013520 1.3324949
code to display values
par(mar=rep(2,4))
op <- par(oma=c(5,7,1,1))
par(mfrow=c(4,2))
line = 3
barplot(z1, ylim=c(-2,2), xlab="Years", ylab="spei", xaxp=c(181,2005,1), col=ifelse(z1>0,"green","brown »))
hoe help on this issue
Fipou
More information about the R-help
mailing list