% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{log_pretty}
\alias{log_pretty}
\title{Pretty ticks for log-transformed axes}
\usage{
log_pretty(range_orig, base = 10)
}
\arguments{
\item{range_orig}{Numeric length-2 range in the original (non-log) scale.
All values must be strictly positive; otherwise the function falls back
to \code{\link[base]{pretty}}.}

\item{base}{Logarithm base. Use \code{exp(1)} for natural log, \code{2} for
\code{log2}, or \code{10} for \code{log10}.}
}
\value{
A numeric vector of tick values in the original scale.
}
\description{
Compute "log-pretty" tick values in the original (non-transformed) space
using decade-aware sub-multiples. Ranges spanning at least three orders of
magnitude collapse to one tick per decade (e.g. \code{1, 10, 100}); narrower
ranges include classic engineering sub-multiples (\code{1, 2, 5} or
\code{1, 2, 3, 5, 7}); ranges narrower than half a decade fall back to
\code{\link[base]{pretty}} on the original scale because dense log ticks
look clustered there.
}
\keyword{internal}
