From rmh@surfer.sbm.temple.edu  Mon Apr 23 04:19:42 2001
From: rmh@surfer.sbm.temple.edu (rmh@surfer.sbm.temple.edu)
Date: Mon, 23 Apr 2001 05:19:42 +0200 (MET DST)
Subject: [Rd] barplot documentation bug (PR#919)
Message-ID: <200104230319.FAA10270@pubhealth.ku.dk>

## documentation error for barplot

p <- c(.5,.3,.15,.05)
par(mfrow=c(4,1))
barplot(p, ylim=c(0,.5), space=0, width=1)
barplot(p, ylim=c(0,.5), space=0, width=.5)
barplot(p, ylim=c(0,.5), space=0, width=.25)
barplot(p, ylim=c(0,.5), space=0, width=.125)


## The widths in the plots are all the same.
## The R documentation for barplot says:
width: optional vector of bar widths.

## The S-Plus 4.5 documentation for barplot is more accurate.  It says:
width	if histo=FALSE, vector of relative bar widths; in this case
	all of the bars are the same width by default. When histo=TRUE, width
	represents where the breaks are for the histogram.
	

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] barplot documentation bug (PR#919)
rmh@surfer.sbm.temple.edu