11

How can I get the actual lines (that form the many rectangles) on a histogram to be thicker? I would like to avoid using ggplot.

Here is some code that generates a histogram so that we have a reproducible example:

h = hist(rnorm(100),plot=F)
plot(h,lwd=4) #note, lwd does not work :(

enter image description here

CodeGuy
  • 28,427
  • 76
  • 200
  • 317

1 Answers1

12

You can set the line width with par():

opar <- par(lwd=2)
plot(h)
par(opar)

histogram plot

Gabor Csardi
  • 10,705
  • 1
  • 36
  • 53