Plotting Wave objects
Plotting objects of class
# S4 method for Wave,missing plot(x, info = FALSE, xunit = c("time", "samples"), ylim = NULL, main = NULL, sub = NULL, xlab = NULL, ylab = NULL, simplify = TRUE, nr = 2500, axes = TRUE, yaxt = par("yaxt"), las = 1, center = TRUE, ...)
# S4 method for WaveMC,missing plot(x, info = FALSE, xunit = c("time", "samples"), ylim = NULL, main = NULL, sub = NULL, xlab = NULL, ylab = colnames(x), simplify = TRUE, nr = 2500, axes = TRUE, yaxt = par("yaxt"), las = 1, center = TRUE, mfrow = NULL, ...) plot.Wave.channel(x, xunit, ylim, xlab, ylab, main, nr, simplify, axes = TRUE, yaxt = par("yaxt"), las = 1, center = TRUE, ...)
Character indicating which units are used for setting up user coordinates (see
par) and x-axis labeling. If
xunit = "time", the unit is time in seconds, otherwise the number of samples.
y(amplitude) limits of the plot.
- main, sub
A title / subtitle for the plot.
Label for x-axis.
Label for y-axis (on the right side of the plot). For
WaveMCobjects, this can be the default
colnames(x)(i.e. channel names of the
NULLfor “channel 1”, …, “channel nc” where nc is
NAfor no labels, or a character vector of labels (one element for each channel). For
Waveobjects, this can be de default “left channel” (for mono) or “left channel” and “right channel” (for stereo),
NAfor no labels, or a character vector of labels (one element for each channel).
Logical, whether the plot should be “simplified”. If
TRUE(default), not all (thousand/millions/billions) of points (samples) of the
WaveMCobject are drawn, but the
nr(see below) ranges (in form of segments) within
nrwindows of the time series.
simplify = FALSEmay take several minutes (depending on the number of samples in the
WaveMC) and output in any vector format may be really huge.
Number of windows (segments) to be used approximately (an appropriate number close to
nris selected) to
simplify(see above) the plot. Only used if
simplify = TRUEand the number of samples of the
Whether to plot axes, default is
How to plot the y-axis (
"n"for no y-axis).
The style of the axis labels, default is
las = 1(always horizontal), see
Whether to plot with y-axes centered around 0 (or 127 if 8-bit), default is
A vector indicating the arrangement of the figures, see
Further arguments to be passed to the underlying plot functions.
plot.Wave.channel is a helper function
to plot a single channel (left for a
Wave object, first channel / first column of data slot of a
in particular it is not intended to be called by the user directly.