Learn R Programming

psd (version 2.1.2)

tapers-methods: Generic methods for objects with class 'tapers'

Description

Generic methods for objects with class 'tapers'

Usage

# S3 method for tapers
as.data.frame(x, ...)

data.frame.tapers(x, ...)

# S3 method for tapers print(x, ...)

# S3 method for tapers summary(object, ...)

# S3 method for summary.tapers print(x, ...)

# S3 method for tapers lines(x, lwd = 1.8, col = "red", ...)

# S3 method for tapers points(x, pch = "_", cex = 1, ...)

# S3 method for tapers plot( x, xi = NULL, color.pal = c("Blues", "Spectral"), ylim = NULL, hv.lines = FALSE, log.y = FALSE, xlab = "taper index", ylab = "number of tapers", ... )

Value

plot returns a list with names: line.colors (hex values)

Arguments

x

tapers object

...

optional arguments

object

tapers object

lwd

line width (default is 1.8)

col

color of line (default is "red")

pch

point character (default is "_")

cex

point size (default is 1)

xi

optional vector for indices of x

color.pal

color palette to use (choices are: "Blues","Spectral")

ylim

optional limits for y-axis

hv.lines

logical; should horizontal (log2) and vertical reference lines be plotted?

log.y

logical; should the vertical scale be logarithmic?

xlab, ylab

character; labels for plot axes

Author

A.J. Barbour

See Also

as.tapers, constrain_tapers

Examples

Run this code
##
tap <- as.tapers(c(1:49,50:0)+rnorm(1e2))
print(tap)
print(summary(tap))
plot(tap)
# no arithmetic methods
tap <- as.tapers(tap/2)
lines(tap)

Run the code above in your browser using DataLab