Re: [Rd] (PR#8376 inconsistency between plot(hist(...)) and hist(...)

From: <>
Date: Sun 11 Dec 2005 - 07:40:01 GMT

Hi Brian,

On Sun, Dec 11, 2005 at 04:34:50AM +0000, Prof Brian Ripley wrote:
> Did you check the help page? ?plot.histogram shows plot.histogram has a
> 'freq' argument, and the correct usage is
> plot(hist(x), freq=FALSE)

Ah, thanks for the explanation.

I didn't occur to me to check the plot.histogram() help page. Besides, even if I had read it, I still don't think the semantics would have been clear to me without additional experimentation.

Perhaps it might be helpful to document in the hist() help page which attributes are stored in the hist() object. Alternatively/additionally, hist() could emit a warning or error if plot=FALSE and irrelevant (non-stored) attributes are set.

Andrew mailing list Received on Sun Dec 11 18:45:01 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:34 GMT