minor_breaks_log: Minor breaks for log-10 axes

View source: R/breaks-log.R

minor_breaks_logR Documentation

Minor breaks for log-10 axes

Description

This break function is designed to mark every power, multiples of 5 and/or 1 of that power for base 10.

Usage

minor_breaks_log(detail = NULL, smallest = NULL)

Arguments

detail

Any of 1, 5 and 10 to mark multiples of powers, multiples of 5 of powers or just powers respectively.

smallest

Smallest absolute value to mark when the range includes negative numbers.

Value

A function to generate minor ticks.

Examples

# Standard usage with log10 scale
demo_log10(c(1, 1e10), minor_breaks = minor_breaks_log())
# Increasing detail over many powers
demo_log10(c(1, 1e10), minor_breaks = minor_breaks_log(detail = 1))
# Adjusting until where to draw minor breaks
demo_continuous(
  c(-1000, 1000),
  transform = asinh_trans(),
  minor_breaks = minor_breaks_log(smallest = 1)
)

r-lib/scales documentation built on Nov. 2, 2024, 9:31 a.m.