[R] histogram with absolute figures

Mark Difford mark_difford at yahoo.co.uk
Tue Jul 10 11:13:52 CEST 2007


In the absence of a data set, it may help to read the help file carefully:

?hist

Note, in particular, that the argument freq defaults to TRUE "if and only if
breaks are equidistant (and probability is not specified)."

Regards,
Mark.


Sarah Goslee wrote:
> 
> Well, how about an example of what you are doing, and a
> description of what the results you get and the results you
> want are?
> 
> When I do a histogram, I get frequencies.
> 
> Sarah
> 
> On 7/9/07, Mag. Ferri Leberl <ferri.leberl at gmx.at> wrote:
>> Meanwhile I have recognized, that the breaks-option enforces density as
>> the default. But if I try to force frequencies (freq=TRUE) I get the
>> following feedback:
>>
>> Warning message:
>> the AREAS in the plot are wrong -- rather use freq=FALSE in:
>> plot.histogram(r, freq = freq, col = col, border = border, angle =
>> angle,
>>
>> And the machine hasn't promised too much: the result IS wrong.
>> Yours,
>> Mag. Ferri Leberl
>>
>>
>>
>> Am Freitag, den 06.07.2007, 16:17 -0400 schrieb Sarah Goslee:
>> > The default of hist() is counts rather than percentages.
>> >
>> > Sarah
>> >
>> > On 7/6/07, Mag. Ferri Leberl <ferri.leberl at gmx.at> wrote:
>> > > Dear everybody!
>> > > Is ist easily possible to make up a histogram with absolute numbers
>> > > instead of percentages?
>> > > Thank you in advance!
>> > > Yours, Mag. Ferri Leberl
>> > >
>> > > ___________________
>>
>>
> 
> 
> -- 
> Sarah Goslee
> http://www.functionaldiversity.org
> 
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
> 
> 

-- 
View this message in context: http://www.nabble.com/histogram-with-absolute-figures-tf4037852.html#a11517345
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list