From ripley@stats.ox.ac.uk  Sun May 20 07:22:23 2001
From: ripley@stats.ox.ac.uk (Prof Brian D Ripley)
Date: Sun, 20 May 2001 07:22:23 +0100 (GMT Daylight Time)
Subject: [Rd] hist() ignores 'probability=T' (PR#944)
In-Reply-To: <200105200039.CAA02528@pubhealth.ku.dk>
Message-ID: <Pine.WNT.4.31.0105200720110.63-100000@tern.stats>

On Sun, 20 May 2001 john.maindonald@anu.edu.au wrote:

> In the following, 'probability=T' is ignored,
> i.e. the vertical axis is labelled in
> frequencies.

It's a 1.2.3-only bug already found (by Jonathan Marchini) and fixed in the
sources.  From NEWS in R-devel:

    o	hist.default() was ignoring its `probability' argument for
	equi-spaced breaks.


>
> However hist(islands, freq=F) achieves the desired effect.
>
>  > data(islands)
>  > hist(islands, probability=T)  # Vertical axis gives frequencies
>  > hist(islands, freq=F)              # Expected result
>
> --please do not edit the information below--
>
> Version:
>   platform = i386-pc-mingw32
>   arch = x86
>   os = Win32
>   system = x86, Win32
>   status =
>   major = 1
>   minor = 2.3
>   year = 2001
>   month = 04
>   day = 26
>   language = R
>
> Windows 98 SE 4.10 (build 2222)  A
>
> Search Path:
>   .GlobalEnv, package:ctest, Autoloads, package:base
> John Maindonald               email : john.maindonald@anu.edu.au
> Statistical Consulting Unit,  phone : (6125)3998
> c/o CMA, SMS,                 fax   : (6125)5549
> John Dedman Mathematical Sciences Building
> Australian National University
> Canberra ACT 0200
> Australia
>
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] hist() ignores 'probability=T' (PR#944)
Prof Brian D Ripley