Force R to plot histogram as probability (relative frequency)
问题 I am having trouble plotting a histogram as a pdf (probability) I want the sum of all the pieces to equal an area of one so it's easier to compare across datasets. For some reason, whenever I specify the breaks (the default of 4 or whatever is terrible), it no longer wants to plot bins as a probability and instead plots bins as a frequency count. hist(data[,1], freq = FALSE, xlim = c(-1,1), breaks = 800) What should I change this line to? I need a probability distribution and a large number