exp_axis: A plot axis wrapper function

Description Usage Arguments Examples

Description

This function generates an axis with a label in an exponential form, given a log-scale range.

Usage

1
exp_axis(x, axis_ind, n = 5)

Arguments

x

Vector of numbers to plot or range of the numbers

axis_ind

Axis number (1: bottom, 2: left, 3: top, 4: right)

n

(Rough) number of tick marks that is used to find pretty tick mark positions. (parameter for pretty())

Examples

1
2
3
4
5
6
 logx=rnorm(100)
 logy=rnorm(100) + logx
 plot(logx, logy, xlab="x", ylab="y", axes=FALSE)
 exp_axis(range(logx),1)
 exp_axis(range(logy),2)
 box()

SooLee/plotosaurus documentation built on May 9, 2019, 1:52 p.m.