Blogger

Delete comment from: One R Tip A Day

Paolo said...

Dear Chiara,
SFTD, the problem seems to be explained in the following paragraph of the man page for hist (?hist):

freq: logical; if 'TRUE', the histogram graphic is a representation of frequencies, the 'counts' component of the result; if 'FALSE', probability densities, component 'density', are plotted (so that the histogram has a total area of one). Defaults to 'TRUE' _if and only if_ 'breaks' are equidistant
(and 'probability' is not specified).

The specific warning you pointed out seems to be raised if you try to use the plot=F and the freq argument (either freq=T or freq=F) together.
If the 'breaks' you specified are not equidistant (nbreaks argument) the histogram will plot probability densities.

Feb 27, 2009, 7:14:00 PM


Posted to How to Superimpose Histograms

Google apps
Main menu