Learn R Programming

psd (version 0.4-1)

tapers-methods: 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, ...)

## S3 method for class 'tapers': data.frame(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, ...)

Arguments

x
tapers object
xi
optional vector for indices of x
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)
color.pal
color palette to use (choices are: "Blues","Spectral")
ylim
optional limits for y-axis
hv.lines
logical; should horizontal and vertival reference lines be plotted?
...
optional arguments

Value

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

See Also

as.tapers, constrain_tapers, par

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