Skip to content
Prev 82928 / 398513 Next

How to reverse the sequence of axis Y ??

Hello Klebyn,

It might be that a better solution exists, but here is something that 
might help you. (I used that all y's are positive!)

R> maxy=ceiling(max(y))
R> plot(x,maxy-y,axes=FALSE)
R> axis(1)
R> axis(2,0:maxy,seq(maxy,0,-1))

If not all your y's are positive define `miny' and take then
R> axis(2,miny:maxy,seq(maxy,miny,-1))

Best regards and good luck,
Kristel
klebyn wrote: