Hi all,

I am generating histograms with the following R script :

#!/usr/bin/Rscript

out_file = "histo.png"
png(out_file)

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

dev.off()

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
suggestions?

Thanks!

- vihan

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to