Learn R Programming

spectral.methods (version 0.7.2.133)

plotAdditionalAxis: Add a second plot axis with transformed label values

Description

This function adds a second axis additional labels to a plot. It uses the axis values of the opposite side and mathematically transforms these into the values added. This can be used for example to indicate the period and frequency of a periodic signal.

Usage

plotAdditionalAxis(side = 1, trans.fun, label = c(), ...)

Arguments

side
integer: which axis to use as a basis for the second one.
trans.fun
function: the transfer function to use between the two axis values.
label
character: labels of the axis.
...
further arguments to pass to the axis call.

Value

See Also

axis