logrange_1: Predefined sets of labels for plots with log-scaled axes

logrange_1R Documentation

Predefined sets of labels for plots with log-scaled axes

Description

logrange_1 returns a vector for log-labels at .1, 1, 100, 1000 ...

Usage

logrange_1

logrange_5

logrange_123456789

logrange_12357

logrange_15

Format

An object of class numeric of length 41.

An object of class numeric of length 738.

An object of class numeric of length 369.

An object of class numeric of length 205.

An object of class numeric of length 82.

Value

numeric vector

numeric vector

Functions

  • logrange_5: vector for log-labels at 1.0, 1.5, 2.0, 2.5 ... 10, 15, 20, 25 ...

  • logrange_123456789: vector for log-labels at 1, 2, 3 ... 9, 10, 20, 30 ... 90, 100 ...

  • logrange_12357: vector for log-labels at 1 ,2, 3, 5, 7, 10, 20 ,30, 50, 70 ...

  • logrange_15: vector for log-labels at 1, 5, 10, 50 ...

Examples

ggplot2::ggplot(mtcars) + 
ggplot2::aes(wt, mpg) +
  ggplot2::geom_point() +
  ggplot2::scale_y_log10(breaks = logrange_5)
ggplot2::ggplot(mtcars) +
  ggplot2::aes(wt, mpg) +
  ggplot2::geom_point() +
  ggplot2::scale_y_log10(breaks = logrange_123456789)

wrappedtools documentation built on Oct. 10, 2024, 5:07 p.m.