autoplot.SpectralDensityView | R Documentation |
Autoplot a SpectralDensityView S3 object
## S3 method for class 'SpectralDensityView'
autoplot(object, period_range = c(0, 10), colour = "blue", ...)
object |
|
period_range |
tuple for limiting range of periods. |
colour |
name of line colour. |
... |
ignored. |
a ggplot
object.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.