AxisFormat: Customize Axis Tick Labels

Description Usage Arguments Value Methods (by class) Examples

View source: R/plot_functions.R

Description

AxisFormat (for now the numeric method) customizes axis tick labels by reducing tick labels with many characters to the bare minimum. For example, 0.015 becomes 15 or 1500 becomes 1.5. The returned function AxisTitle allows for customizing the axis label with 'x 10^power', where 'power' is either negative or positive depending upon input.

Usage

1
2
3
4
AxisFormat(x, ...)

## S3 method for class 'numeric'
AxisFormat(x, ...)

Arguments

x

Vector (for now numeric only) typically supplied from axTicks().

...

Currently not used

Value

A list with new re-formatted labels and function AxisTitle for customizing axis label.

Methods (by class)

Examples

1
AxisFormat(c(0, 0.015, 0.020, 0.025, 0.030))

jasondubois/sportfish documentation built on July 3, 2020, 1:01 p.m.