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

tapers-methodsR Documentation

Generic methods for objects with class 'tapers'

Description

Generic methods for objects with class 'tapers'

Usage

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

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

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

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

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

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

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

## S3 method for class '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",
  ...
)

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

Value

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

Author(s)

A.J. Barbour

See Also

as.tapers, constrain_tapers

Examples

##
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)

abarbour/psd documentation built on Aug. 15, 2023, 8:56 a.m.