On Wed, 2005-11-16 at 16:46 +0000, 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()? > > > > Thanks, > > JrgYou mean something like this?: barplot(1:10, ylim = rev(c(0, 12))) or, something like this?: barplot(1:10, yaxt = "n") axis(2, labels = rev(seq(0, 10, 2)), at = seq(0, 10, 2)) Note the use of rev() in each case. HTH, Marc Schwartz
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