[R] barplot(*, ylim = c("y1 > 0", y2))

Martin Maechler maechler at stat.math.ethz.ch
Tue Jun 25 11:58:42 CEST 2002

>>>>> "Jan" == Jan Malte Wiener <jan.wiener at tuebingen.mpg.de> writes:

     talking about barplot()

    Jan> Well, unfortunately changing ylim does not work properly, try changing 
    Jan> it to ylim= c(30,100) and look at the plot !!!

i.e., e.g.,

  barplot(VADeaths, beside=TRUE, legend=rownames(VADeaths),ylim=c(30,100))

which may not be as desired, but not really wrong either.
(and as Jari Oksanen just said, can be amended by setting `xpd=FALSE')

However, cutting off a barplot() like that seems VERY MUCH like a bad
example of applying
	`` How to Lie With Statistics ''
(used to be a "must read" : Darrel Huff (1954) {How to Lie With Statistics} )
and maybe we should not allow this easily with barplot(). .. :-)

Martin Maechler <maechler at stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO C16	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list