autoplot.auto.imu: Automatic Model Selection Results of IMU Object

Description Usage Arguments Value Author(s) Examples

View source: R/imu.R

Description

Creates a graph of the automatic model selection result containing the empirical and theoretical wavelet variances.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## S3 method for class 'auto.imu'
autoplot(object, process.decomp = FALSE, CI = TRUE,
  background = "white", transparence = 0.1, line.color = NULL,
  line.type = NULL, point.size = NULL, point.shape = NULL,
  CI.color = "#003C7D", title = "Automatic Model Selection Results",
  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", scales = "free_y",
  legend.title = "", legend.label = NULL, legend.key.size = 1,
  legend.title.size = 13, legend.text.size = 13, ...)

Arguments

object

A auto.imu object

process.decomp

A boolean that indicates whether the decomposed processes should be plotted or not.

CI

A boolean that indicates whether the confidence interval should be plotted.

background

A string that determines the graph background. It can be 'grey' or 'white'.

transparence

A double that ranges from 0 to 1 that controls the transparency of the confidence interval.

line.color

A vector of string that indicates the color of the line drawn (e.g. black, blue, red, etc.)

line.type

A vector of string that indicates the type of line (e.g. solid, dotted, etc.)

point.size

A vector of integer that indicates the size of points on lines.

point.shape

A vector of integer that indicates the shape of points on lines.

CI.color

A string that indicates the color of the confidence interval (e.g. black, red, #003C7D, etc.)

title

A string that indicates the title of the graph.

title.size

An integer that indicates the size of title.

axis.label.size

An integer that indicates the size of label.

axis.tick.size

An integer that indicates the size of tick mark.

axis.x.label

A string that indicates the label on x axis.

axis.y.label

A string that indicates the label on y axis.

units

A two-element vector indicating the units of gyroscope and accelerometer sensor. Set it to NULL if units are not needed.

facet.label.size

An integer that indicates the size of facet label.

facet.label.background

A string that indicates the background color of the facet label.

scales

Same as scales in facet_grid() in ggplot2 package: should scales be fixed ("fixed"), free ("free"), or free in one dimension ("free_x", "free_y"). The default is "free_y" in this function.

legend.title

A string that indicates the title of legend. Used only when process.decomp = T.

legend.label

A character vector that indicates the labels on legend. Used only when process.decomp = T.

legend.key.size

A double that indicates the size of key (in centermeters) on legend. Used only when process.decomp = T.

legend.title.size

An integer that indicates the size of title on legend. Used only when process.decomp = T.

legend.text.size

An integer that indicates the size of key label on legend. Used only when process.decomp = T.

...

Additional options.

Value

A panel containing the automatic model selection results of an IMU sensor.

Author(s)

Wenchao

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
if(!require("imudata")){
   install_imudata()
   library("imudata")
}

data(imu6)
test = imu(imu6, gyros = 1:3, accels = 4:6, axis = c('X', 'Y', 'Z', 'X', 'Y', 'Z'), freq = 100)
df = auto.imu(test)
autoplot(df)
autoplot(df, process.decomp = T)
autoplot(df, CI = F)
autoplot(df, CI = T, line.color = c('black', 'black', 'blue'), title.size = 18)

## End(Not run)

SMAC-Group/gmwm documentation built on Sept. 11, 2021, 10:06 a.m.