Description Usage Arguments Author(s) See Also
Plot a observed melody and (optional) an expected melody, as well as corresponding energy values (corresponding to the loudness of the sound).
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | melodyplot(object, observed, expected = NULL, bars = NULL, 
    main = NULL, xlab = NULL, ylab = "note", xlim = NULL, ylim = NULL, 
    observedtype = "l", observedcol = "red", expectedcol = "grey", 
    gridcol = "grey", lwd = 2, las = 1, cex.axis = 0.9, 
    mar = c(5, 4, 4, 4) + 0.1, notenames = NULL, thin = 1, 
    silence = "silence", plotenergy = TRUE, ...,
    axispar = list(ax1 = list(side=1),
                   ax2 = list(side=2), 
                   ax4 = list(side=4)),
    boxpar = list(), 
    energylabel = list(text="energy", side=4, line=2.5, at=rg.s-0.25, las=3),
    energypar = list(), 
    expectedpar = list(),
    gridpar = list(col=gridcol), 
    observedpar = list(col=observedcol, type=observedtype, lwd=2, pch=15))
 | 
| object | An object of class  | 
| observed | Observed notes, probably as a result from  | 
| expected | Expected notes (optional; in order to compare results), same format as  | 
| bars | Number of bars to be plotted (a virtual static segmentation takes place).
If  | 
| main | Main title of the plot. | 
| xlab, ylab | Annotation of -/y-axes. | 
| xlim, ylim | Range of x-/y-axis, where  | 
| observedtype | Type (either  | 
| observedcol | Colour for the observed melody. | 
| expectedcol | Colour for the expected melody. | 
| gridcol | Colour of the grid. | 
| lwd | Line width, see  | 
| las | Orientation of axis labels, see  | 
| cex.axis | Size of tick mark labels, see  | 
| mar | Margins of the plot, see  | 
| notenames | Optionally specify other notenames (character) for the y axis. | 
| thin | Amount of thinning of notenames, i.e. only each  | 
| silence | Character string for label of the ‘silence’ (default) axis. | 
| plotenergy | Logical (default:  | 
| ... | Additional graphical parameters to be passed to underlying  | 
| axispar | A named list of three other lists ( | 
| boxpar | A list of parameters to be passed to the box generating functions. | 
| energylabel | A list of parameters to be passed to the energy-label 
generating  | 
| energypar | A list of parameters to be passed to the  | 
| expectedpar | A list of parameters to be passed to the  | 
| gridpar | A list of parameters to be passed to the  | 
| observedpar | A list of parameters to be passed to the  | 
Uwe Ligges ligges@statistik.tu-dortmund.de
noteFromFF, FF, quantplot; 
for an example, see the help in tuneR.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.