Skip to contents

Plots the scalogram resulting from fcwt(). Requires ggplot2.

Usage

# S3 method for class 'fcwtr_scalogram'
plot(x, n = 1000, ...)

Arguments

x

An object resulting from fcwt().

n

The plotting function reduces the time resolution by averaging to generate a reasonable graphics format. n is the number of time steps that are plotted. Defaults to n = 1000.

...

other arguments passed to specific methods

Value

No return value, called for side effects.

Examples

ts_sin_440 <- sin((1:4410) * 2 * pi * 440 / 44100)

res <-
  fcwt(
    ts_sin_440,
    sample_freq = 44100,
    freq_begin = 50,
    freq_end = 1000,
    n_freqs = 10,
    sigma = 5
  )

plot(res)