animate_stream_interactive: Animate Stream Clustering.

Description Usage Arguments Examples

View source: R/plot.R

Description

A function to plot data streams and clusterings. The visualisation is based on shiny and ggplot. Data is plotted as a scatterplot matrix and individual scatterplots can be selected for a more detailed view that includes tooltips. Please note that this function was developed for the Streaming algorithms in the subspaceMOA package and may or may not work for streams and clustering algorithms.

Usage

1
2
animate_stream_interactive(dsc, dsd, step = 1500, delay = 10000,
  launch.browser = getOption("shiny.launch.browser", interactive()))

Arguments

dsc

a DSC object representing the clustering of a data stream.

dsd

a DSD object representing a data stream.

step

the step size used in animate_stream_interactive. This regulates how many points will be taken out of the stream, clustered and the plotted along with their clusters every time a step is performed.

delay

time between two clustering steps

launch.browser

will be passed on to runApp, so that the visualisation can be shown in e.g. RStudio's Viewer pane, if this is desired.

Examples

1
2
3
4
5
6
7
8
clusterer <- DSC_ThreeStage(DSC_p3c(),DSC_subspaceCluStream())
stream <- DSD_RandomRBFSubspaceGeneratorEvents()


## Not run: 
animate_stream_interactive(clusterer,stream)

## End(Not run)

subspaceMOA documentation built on May 29, 2017, 10:50 p.m.