[R] unordered y axis
ani jaya
g@@@uu| @end|ng |rom gm@||@com
Thu Nov 7 03:23:06 CET 2019
Dear R-Help,
I have 35 data that is month when the annual minima happened. So I want to
plot those data but the order of y axis is not from 1 to 12, but let say
start from 9,10,11,12,1,..8. The reason to do this is when 12 (Dec) meet 1
(Jan) in the following year the graph is not quite good (for me).
year<-c(1981:2015)
month<-c(3, 1, 12, 11, 2, 1, 12, 1, 2, 1, 12, 3, 2, 12, 2, 7, 2, 6, 2, 1,
1, 12, 3, 12, 3, 12, 2, 2, 9, 2, 1, 4, 12, 3, 4)
plot(month~year,xaxt="n", type="b", ylab="Month", xlab="Year")
axis(1, at=1986:2015,cex.axis=.8)
Any lead or comment is appreciate.
Best, Ani
[[alternative HTML version deleted]]
More information about the R-help
mailing list