makeLogMinor: Generate spacing for minor tick marks on a plot with...

View source: R/makeLogMinor.R

makeLogMinorR Documentation

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

Description

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

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, 2*x1, 3*x1, ..., x2) to the vector of return values.

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

Usage

makeLogMinor(major)

Arguments

major

a vector of values giving major tick marks.

Value

vector of minor tick spacings approrpaite for log 10 scaled axis with major ticks given by 'major'

Examples

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

## End(Not run)

dfalster/smatr3 documentation built on Aug. 30, 2022, 5:25 a.m.