makeLogMinor function

Generate spacing for minor tick marks on a plot with log-scaled axes

Generate spacing for minor tick marks on a plot with log-scaled axes

Generates a sequence of numbers providing minor tick marks on log scaled axes.

makeLogMinor(major)

Arguments

  • major: a vector of values giving major tick marks.

Details

A vector is created according to the following algorithm. For each pair of adjacent values (x1, x2) in major, the function adds the values (x1, 2x1, 3x1, ..., x2) to the vector of return values.

This is useful for generating spacing of minor tick-values on log-transformed axes.

Examples

#Sequence suitable for log base 10 labels makeLogMinor(seqLog(1E-5, 1E5))

See Also

nicePlot, seqLog

  • Maintainer: Remko Duursma
  • License: GPL-2
  • Last published: 2018-03-18