user1322720
user1322720

Reputation:

Remove borders from bars in histogram in R

How can I remove the borders around bars in R, so that only the fill remains?

Instead of this:

enter image description here

I want this:

enter image description here

I do not want to color the borders!

Upvotes: 15

Views: 9560

Answers (1)

Kees Mulder
Kees Mulder

Reputation: 490

You can set this parameter as an extra option for hist, as lty="blank":

hist(rnorm(100), lty="blank", col="hotpink")

Upvotes: 14

Related Questions