Are you doing something like
x <- runif(7)
plot(x,type="h",lwd=10)
?
Probably what you would prefer is the barplot() command:
barplot(x,col="black",names=1:7)
It *is* possible to proceed as you are going, if you are producing
PostScript output, by editing the PostScript file and changing the line
that reads
1 setlinecap 1 setlinejoin
to
0 setlinecap 1 setlinejoin
... but barplot() is probably a much better idea.
On Wed, 5 Apr 2000, [iso-8859-1]
José Ernesto Jardim wrote:> Hi
>
> 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
> this.
>
> All help will be thankfull
>
> ernesto
>
>
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._