The R Project SVN R

Rev

Rev 24300 | Rev 30461 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24300 Rev 25118
Line 13... Line 13...
13
\item{min.n}{nonnegative integer giving the \emph{minimal} number of
13
\item{min.n}{nonnegative integer giving the \emph{minimal} number of
14
    intervals.  If \code{min.n == 0}, \code{pretty(.)} may return a
14
    intervals.  If \code{min.n == 0}, \code{pretty(.)} may return a
15
    single value.}
15
    single value.}
16
\item{shrink.sml}{positive numeric
16
\item{shrink.sml}{positive numeric
17
  by a which a default scale is shrunk in the case when
17
  by a which a default scale is shrunk in the case when
18
  \code{range(x)} is ``very small'' (usually 0).}
18
  \code{range(x)} is \dQuote{very small} (usually 0).}
19
\item{high.u.bias}{non-negative numeric, typically \eqn{> 1}.
19
\item{high.u.bias}{non-negative numeric, typically \eqn{> 1}.
20
    The interval unit is determined as \{1,2,5,10\} times \code{b}, a
20
    The interval unit is determined as \{1,2,5,10\} times \code{b}, a
21
    power of 10.  Larger \code{high.u.bias} values favor larger units.
21
    power of 10.  Larger \code{high.u.bias} values favor larger units.
22
}
22
}
23
\item{u5.bias}{non-negative numeric
23
\item{u5.bias}{non-negative numeric
24
    multiplier favoring factor 5 over 2.  Default and ``optimal'':
24
    multiplier favoring factor 5 over 2.  Default and \dQuote{optimal}:
25
    \code{u5.bias = .5 + 1.5*high.u.bias}.}
25
    \code{u5.bias = .5 + 1.5*high.u.bias}.}
26
\item{eps.correct}{integer code, one of \{0,1,2\}. If non-0, an
26
\item{eps.correct}{integer code, one of \{0,1,2\}. If non-0, an
27
    \emph{``epsilon correction''} is made at the boundaries such that
27
    \dQuote{\emph{epsilon correction}} is made at the boundaries such that
28
    the result boundaries will be outside \code{range(x)}; in the
28
    the result boundaries will be outside \code{range(x)}; in the
29
    \emph{small} case, the correction is only done if \code{eps.correct >=2}.}
29
    \emph{small} case, the correction is only done if \code{eps.correct >=2}.}
30
}
30
}
31
\description{
31
\description{
32
    Compute a  sequence of about \code{n+1} equally spaced nice values which
32
    Compute a  sequence of about \code{n+1} equally spaced nice values which
Line 41... Line 41...
41
    \eqn{10^{\lfloor{\log_{10}(c)}\rfloor}}{10^(floor(log10(c)))} such
41
    \eqn{10^{\lfloor{\log_{10}(c)}\rfloor}}{10^(floor(log10(c)))} such
42
    that \eqn{b \le c < 10b}.
42
    that \eqn{b \le c < 10b}.
43
 
43
 
44
    Now determine the basic \emph{unit} \eqn{u} as one of
44
    Now determine the basic \emph{unit} \eqn{u} as one of
45
    \eqn{\{1,2,5,10\} b}, depending on \eqn{c/b \in [1,10)} and the two
45
    \eqn{\{1,2,5,10\} b}, depending on \eqn{c/b \in [1,10)} and the two
46
    \emph{``bias''} coefficients, \eqn{h =}\code{high.u.bias} and
46
    \dQuote{\emph{bias}} coefficients, \eqn{h =}\code{high.u.bias} and
47
    \eqn{f =}\code{u5.bias}.
47
    \eqn{f =}\code{u5.bias}.
48
 
48
 
49
    \dots\dots\dots
49
    \dots\dots\dots
50
%%-- fixme: give even more details
50
%%-- fixme: give even more details
51
%%-- fixme: give even more details
51
%%-- fixme: give even more details