melodyplot {tuneR}R Documentation

Plotting a melody

Description

Plot a observed melody and (optional) an expected melody, as well as corresponding energy values (corresponding to the loudness of the sound).

Usage

melodyplot(object, observed, expected = NULL, bars = NULL, 
    main = NULL, xlab = NULL, ylab = "note", xlim = NULL, ylim = NULL, 
    observedcol = "red", expectedcol = "grey", gridcol = "grey",
    lwd = 2, las = 1, cex.axis = 0.9, mar = c(5, 4, 4, 4) + 0.1)

Arguments

object An object of class Wspec.
observed Observed notes, probably as a result from noteFromFF (or a smoothed version). This should correspond to the Wspec object.
expected Expected notes (optional; in order to compare results).
bars Number of bars to be plotted (a virtual static segmentation takes place). If NULL (default), time rather than bars are used.
main Main title of the plot.
xlab Annotation of x-axis.
ylab Annotation of y-axis.
xlim Range of x-axis.
ylim Range of y-axis.
observedcol Colour for the oberved melody.
expectedcol Colour for the expected melody.
gridcol Colour of the grid.
lwd Line width, see par for details.
las Orientation of axis labels, see par for details.
cex.axis Size of tick mark labels, see par for details.
mar Margins of the plot, see par for details.

Author(s)

Uwe Ligges, ligges@statistik.uni-dortmund.de

See Also

noteFromFF, FF


[Package Contents]