Learn R Programming

spacesRGB (version 1.5-0)

plot: plot a TransferFunction

Description

plot a TransferFunction of dimension 1, 2, or 3.

Usage

# S3 method for TransferFunction
plot( x, color='red', main=TRUE, add=FALSE, ... )

Value

TRUE or FALSE

Arguments

x

a TransferFunction object with dimension N = 1, 2, or 3.

color

Any value acceptable as the col argument to graphics::lines(). If N=3 this argument is currently ignored.

main

If main=TRUE then a main title is generated from the object x. If main=FALSE then no main title is displayed. And if main is a character string then that string is used as the main title. If N=3 this argument is currently ignored.

add

If add=TRUE then the lines are added to an existing plot. If N=3 this argument is currently ignored.

...

other graphical parameters, see Details

Details

If N=1 a conventional plot is drawn using graphics::lines(). Commonly used graphical parameters applicable when N=1 are:

logpassed on to plot.default(). Care must be taken because many transfer functions have 0 in their domains.

If N=2 a grid is generated in the domain box, and the image of that grid is plotted using using graphics::lines().
If N=3 a grid is generated in the domain box, and the image of that grid is plotted in 3D using rgl::lines3d().

See Also

graphics::lines(), rgl::lines3d()