Re: [R] unordered y axis

2019-11-07 Thread ani jaya
Thank you very much, Jim. You help a lot! On Thu, Nov 7, 2019 at 2:09 PM Jim Lemon wrote: > That's not too hard: > > x11(width=7,height=5) > par(cex.axis=.8) > fin_month<-month > fin_month[fin_month>6]<-fin_month[fin_month>6]-12 > fin_month<-fin_month+6 > plot(fin_month~year,axes=FALSE,type="l",

Re: [R] unordered y axis

2019-11-06 Thread Jim Lemon
That's not too hard: x11(width=7,height=5) par(cex.axis=.8) fin_month<-month fin_month[fin_month>6]<-fin_month[fin_month>6]-12 fin_month<-fin_month+6 plot(fin_month~year,axes=FALSE,type="l", ylab="Month", xlab="Year", main="Month of occurrence in year") axis(1,at=seq(1981,2014,3)) fin_months<-mon

Re: [R] unordered y axis

2019-11-06 Thread ani jaya
Dear Jim, Thank you very much for nice suggestion and figure there. But what I need is the y axis start from let say 7 (July) and end at 6 (June). In those sense, I can said clearly that the occurrence, minima in this case, is fall during winter season, because Jan and Dec close to each other. Act

Re: [R] unordered y axis

2019-11-06 Thread Jim Lemon
Hi Ani, There are a number of ways to modify this sort of plot. Here is one: x11(width=7,height=5) par(cex.axis=.8) plot(month~year,xaxt="n", type="l", ylab="Month", xlab="Year", main="Month of occurrence in year") axis(1,at=seq(1981,2014,3)) library(plotrix) boxed.labels(year,month,month.abb[mon

[R] unordered y axis

2019-11-06 Thread ani jaya
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 m