gg_featurespace {oddstream}R Documentation

Produces a ggplot object of two dimensional feature space.

Description

Create a ggplot object of two dimensional feature space using the first two pricipal component returned by get_pc_space.

Usage

gg_featurespace(object, ...)

Arguments

object

Object of class “pcoddstream”.

...

Other plotting parameters to affect the plot.

Value

A ggplot object of two dimensional feature space.

See Also

find_odd_streams, extract_tsfeatures, get_pc_space, set_outlier_threshold

Examples

features <- extract_tsfeatures(anomalous_stream[1:100, 1:100])
pc <- get_pc_space(features)
p <- gg_featurespace(pc)
p + ggplot2::geom_density_2d()

[Package oddstream version 0.5.0 Index]