[R] histogram break width

Vihan Pandey vihanpandey at gmail.com
Thu Mar 29 16:05:52 CEST 2012

Hi all,

I am generating histograms with the following R script :


out_file = "histo.png"

scan("values.csv") -> myvalues
hist(myvalues, breaks = 50)


print(paste("Plot was saved in:", getwd()))

I want the histogram to have a larger number of breaks, but a smaller
break width, the idea is to make it appear smoother like a filled
curve. If I keep increasing breaks it starts looking messy. Any


- vihan

More information about the R-help mailing list