compare_wvar | R Documentation |
Compare the estimates given by the classical and robust methods of calculating the wavelet variance.
compare_wvar(..., background = "white", split = TRUE, CI = TRUE, auto.label.wvar = T, transparence = 0.1, line.color = NULL, CI.color = NULL, line.type = NULL, point.size = NULL, point.shape = NULL, title = "Haar Wavelet Variance Representation", title.size = 15, axis.label.size = 13, axis.tick.size = 11, axis.x.label = expression(paste("Scale ", tau)), axis.y.label = expression(paste("Wavelet Variance ", nu)), units = c(bquote(rad^2/s^2), bquote(m^2/s^4)), facet.label.size = 13, facet.label.background = "#003C7D33", legend.label = NULL, legend.title = "", legend.key.size = 1.3, legend.title.size = 13, legend.text.size = 13, nrow = 1)
... |
Any number of |
background |
A |
split |
A |
CI |
A |
auto.label.wvar |
A |
transparence |
A |
line.color |
A |
CI.color |
A |
line.type |
A |
point.size |
A |
point.shape |
A |
title |
A |
title.size |
An |
axis.label.size |
An |
axis.tick.size |
An |
axis.x.label |
A |
axis.y.label |
A |
units |
A two-element vector indicating the units of gyroscope and accelerometer sensor. Set it to |
facet.label.size |
An |
facet.label.background |
A |
legend.label |
A |
legend.title |
A |
legend.key.size |
A |
legend.title.size |
An |
legend.text.size |
An |
nrow |
An |
If you meet the error "polygon edge not found", RStudio is complaining that you don't have enough
space to plot the graph. You can adjust the graphics window, or open an external window. The
function open_plots
can be used and it works for all operating systems.
When wvar.imu
objects are supplied, some parameters, e.g. split
and nrow
, are
invalid, since the graph is plot seperately and put in 2 rows by default.
JJB, Wenchao
## Not run: ## Case1: Supplied objects are \code{wvar}: data1 = gen_gts(1000, AR1(phi = .32, sigma2=.01)) data2 = gen_gts(2000, ARMA(ar=c(.8,.1), ma=c(.3), sigma2=1)) data3 = gen_gts(4000, AR1(phi = .32, sigma2=1)) wv1 = wvar(data1, robust = TRUE) wv2 = wvar(data2) wv3 = wvar(data3) compare_wvar(wv1, wv2) compare_wvar(wv1, wv2, CI = FALSE) compare_wvar(wv1, wv2, split = FALSE) compare_wvar(wv1, wv2, wv3, split = FALSE) # Change default setting color = c('green','red','blue') label = c('1','2','3') compare_wvar(wv1, wv2, wv3, line.color = color, CI.color = color, legend.label = label) compare_wvar(wv1, wv2, wv3, line.color = color, CI.color = color, legend.label = label, split = FALSE) ## Case2: Supplied objects are \code{wvar.imu}: if(!require("imudata")){ install_imudata() library("imudata") } data(imu6) test1 = imu(imu6, gyros = 1:3, accels = 4:6, axis = c('X', 'Y', 'Z'), freq = 100) wv1 = wvar(test1) test2 = imu(imu6, gyros = 1, accels = 3:4, axis = c('X','X','Y'), freq = 100) wv2 = wvar(test2, robust = T) compare_wvar(wv1, wv2) compare_wvar(wv1, wv2, auto.label.wvar = F, legend.label = c('data1', 'data2')) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.