autoplot.SpectralDensityView function

Autoplot a SpectralDensityView S3 object

Autoplot a SpectralDensityView S3 object

## S3 method for class '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.

Returns

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)
  • Maintainer: Tuomas Eerola
  • License: MIT + file LICENSE
  • Last published: 2023-06-09

Useful links