Learn R Programming

oddstream (version 0.5.0)

gg_featurespace: 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

Run this code
# NOT RUN {
features <- extract_tsfeatures(anomalous_stream[1:100, 1:100])
pc <- get_pc_space(features)
p <- gg_featurespace(pc)
p + ggplot2::geom_density_2d()
# }

Run the code above in your browser using DataLab