Description Usage Arguments Details Value
This function is similar to pretty_breaks
in package
scales
, but has advanced options for log scales, forced range limits,
and separate generation of major and minor ticks (useful for labelling).
1 2 3 |
range |
Numeric vector of length 2 giving the min and max input values. |
inner |
|
logsc |
Boolean, return values suitable for labelling log-scale axes. |
majors |
Boolean, return major ticks. |
minors |
Boolean, return minor ticks. |
n.major |
(Approximate) number of major ticks to return. |
n.minor |
Number of minor ticks to return between each pair of major ticks. |
force.limits |
If |
frac.log |
Use fractions of log10 (10^0.5, 10^0.33, 10^0.25), to closer match desired number of ticks. |
Setting major = FALSE, minor=TRUE
can be useful to return
minor ticks only, e.g. to plot them in a different style than major ticks.
A numerical vector of generated breaks.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.