Skip to contents

Autoplot a SpectralDensityView S3 object

Usage

# S3 method for SpectralDensityView
autoplot(object, period_range = c(0, 10), colour = "blue", ...)

Arguments

object

SpectralDensityView object.

period_range

tuple for limiting range of periods.

colour

name of line colour.

...

ignored.

Value

a ggplot object.

Examples

r <- get_sample_recording()
rv <- get_raw_view(r, "Central", "", "Sitar")
pv <- get_processed_view(rv)
sd1 <- spectral_density(pv, columns = c("LElbow_x", "LEye_x"), spans = 5)
autoplot(sd1)


fv <- apply_filter_sgolay(pv, data_points = c("LElbow", "LEye"), n = 19, p = 4)
sd2 <- spectral_density(fv, data_points = c("LElbow", "LEye"), spans = c(3, 3))
autoplot(sd2)