Learn R Programming

seewave (version 1.7.6)

phaseplot: Phase-phase 2D or 3D plot of a time wave

Description

This function returns a 2D or 3D representation of a time wave according to its first, second and possibly third derivatives.

Usage

phaseplot(wave, f, dim = 3, plot = TRUE, type = "l",
xlab = "1st derivative",
ylab = "2nd derivative",
zlab = "3rd derivative", ...)

Arguments

wave
an R object.
f
sampling frequency of wave (in Hz). Does not need to be specified if embedded in wave.
dim
a vector of lenght 1, the number of dimensions of the plot. Can be either 2 or 3.
plot
logical, if TRUE plots phase-phase plot (by default TRUE).
type
type of plot that should be drawn. See plot for details (by default "l" for lines).
xlab
title of the x axis.
ylab
title of the y axis.
zlab
title of the z axis.
...
other plot or plot3d graphical parameters of the package rgl.

Value

  • If plot is FALSE then a 2 or 3 column matrix is returned. The position of the column is related to the order of the derivative (i. e. first colum = first derivative.

References

For use of such plots see: Rice AN, Land BR, Bass AH (2011) - Nonlinear acoustic complexity in a fish 'two-voice' system. Proceedings of the Royal Society B, in press.

Examples

Run this code
require(rgl)
data(tico)
phaseplot(tico)

Run the code above in your browser using DataLab