anomaly (version 2.0.1)

plot: Visualisation of data, collective and point anomalies.

Description

Plot methods for S4 objects returned by capa, capa.uv, capa.mv, and pass.

The plot can either be a line plot or a tile plot, the type produced depending on the options provided to the plot function and/or the dimensions of the data associated with the S4 object.

Usage

# S4 method for anomaly_series,ANY
plot(x, xlab = "", ylab = "", ...)

# S4 method for capa.class,ANY plot(x, subset, variate_names, tile_plot)

# S4 method for capa.uv.class,ANY plot(x, variate_name)

# S4 method for capa.mv.class,ANY plot(x, subset, variate_names, tile_plot)

# S4 method for pass.class,ANY plot(x, subset, variate_names, tile_plot)

Arguments

x

An S4 class produced by capa, capa.uv, capa.mv.

xlab

Character string containing label for the x-axis.

ylab

Character string containing label for the y-axis.

...

Other parameters to be passed to plotting methods.

subset

A numeric vector specifying a subset of the variates to be displayed. Default value is all of the variates present in the data.

variate_names

Logical value indicating if variate names should be displayed on the plot. This is useful when a large number of variates are being displayed as it makes the visualisation easier to interpret. Default value is TRUE.

tile_plot

Logical value. If TRUE then a tile plot of the data is produced. The data displayed in the tile plot is normalised to values in [0,1] for each variate. This type of plot is useful when the data contains are large number of variates. The default value is TRUE if the number of variates is greater than 20.

variate_name

Logical value indicating if the variate name should be displayed. Default value is variate.name=TRUE.

Value

A ggplot object.

See Also

capa,capa.uv,capa.mv,pass.