logTicks: Define ticks for plots with log10 axes

View source: R/logTicks.r

logTicksR Documentation

Define ticks for plots with log10 axes

Description

Create a vector suitable for using as axis tickmarks in a graphic with a logged

Usage

logTicks(lim, loc = 1)

Arguments

lim

the values to log base 10

loc

a multiplier (see examples)

Value

Vector of log base 10 values to be used for axis tickmarks, not intended to be used as standalone function

Note

This function is called by the scale functions for lo10 axes and is not to be used as standalone function.

See Also

xscale.components.log10 and yscale.components.log10

Examples

logTicks(lim = c(10,100), loc = 1)
logTicks(lim = c(100,10), loc = 1)
logTicks(lim = c(4,109,1000), loc = 1)
logTicks(lim = c(4,109,999), loc = 1)
logTicks(lim = c(109,109,1000,4), loc = 7)
logTicks(lim = c(109,109,1000,4), loc = 4)
logTicks(lim = c(109,109,1000,4), loc = 2)
logTicks(c(2.,5,10,23,532,140,1240,0.2,5,50), loc = c(1,3))

qPharmetra/qpToolkit documentation built on May 24, 2023, 8:52 a.m.