[R] invert y-axis in barplot

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed Nov 16 17:23:42 CET 2005


Jörg Schlingemann wrote:

> Hi!
> 
>  
> 
> This is probably a very trivial question. Is there an easy way to invert the
> y-axis (low values on top) when using the function barplot()? 


barplot(1:10, ylim=c(10, 0))

works for me ...

Uwe Ligges


>  
> 
> Thanks,
> 
> Jörg
> 
> 
> 	[[alternative HTML version deleted]]
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list