s-news
[Top] [All Lists]

Re: hist function in Splus

To: "Leeds, Mark" <mleeds@mlp.com>
Subject: Re: hist function in Splus
From: Prof Brian Ripley <ripley@stats.ox.ac.uk>
Date: Fri, 25 Jul 2003 20:08:23 +0100 (BST)
Cc: s-news@wubios.wustl.edu
In-reply-to: <C497480353EF904FBF7A8B0851E5422C9F7B65@MAIL002.AD.MLP.COM>
On Fri, 25 Jul 2003, Leeds, Mark wrote:

> i am using the function hist and
> i use nclass= optionwith include.lowest=T.
>  
> all the bars get included and include.lowest
> seems to be working. the only
> problem is that the hist function
> creates it's own x axis and it
> marks the endpoints of this axis. it
> decides to mark the endpoints
> of its axis with values that
> are not the highest and lowest
> values in the sample.
>  
> so, basically, the x axis doesn't go as
> far out as the bars go. does
> anyone know if there is a way to change this ?
>  
> I got desperate and
> and tried all the character methods for
> nclass also but they didn't
> move the axis further out either.

The axis is determined by the normal rules: you can specify xaxt="n"
and use axis() to add your own to your own requirements.

It's a feature, and one I appreciate. You might want to experiment with 
setting xlim, also.

-- 
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


<Prev in Thread] Current Thread [Next in Thread>