Description Usage Arguments Details Author(s) See Also Examples
this makes a large bitmap with one rectangle for each cell of the spectrogram. the colors represent amplitude.
1 2 | ## S3 method for class 'spg'
plot(x, pixel.colors = gray.colors(16, 1, 0), ...)
|
x |
a spectrogram object |
pixel.colors |
a vector of colors for different amplitudes |
... |
other arguments for image |
the image function makes VERY large PDFs because each pixel is stored as a rectangle. if you are going to output with this function for publication, use a bitmap format first and mash them up in a graphics editor.
Benjamin N. Taft ben.taft@landmarkacoustics.com
1 2 3 4 5 6 7 8 9 10 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (x, pixel.colors = gray.colors(16, 1, 0), ...)
{
image(attr(x, "time"), attr(x, "frequency"), x, col = pixel.colors,
xlab = "Time (s)", ylab = "Frequency (Hz)", ...)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.