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
|