[R] Histogram with plot() function
ben at zoo.ufl.edu
Wed Apr 5 15:15:15 CEST 2000
Are you doing something like
x <- runif(7)
Probably what you would prefer is the barplot() command:
It *is* possible to proceed as you are going, if you are producing
PostScript output, by editing the PostScript file and changing the line
1 setlinecap 1 setlinejoin
0 setlinecap 1 setlinejoin
... but barplot() is probably a much better idea.
On Wed, 5 Apr 2000, [iso-8859-1]
José Ernesto Jardim wrote:
> I'm trying to make an histogram using the plot() function. Mainly I do
> so because I need to make the histogram of the values in the vector and
> not of the "counts" or "probabilities" of it.
> The main problem is that when using the flags type="h", lwd=10 I get a
> histogram with rounded bars ... and I didn't found out how I can change
> All help will be thankfull
> 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
Ben Bolker bolker at zoo.ufl.edu
Zoology Department, University of Florida http://www.zoo.ufl.edu/bolker
318 Carr Hall/Box 118525 tel: (352) 392-5697
Gainesville, FL 32611-8525 fax: (352) 392-3704
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