Learn R Programming

subspaceMOA (version 0.6.0)

animate_stream_interactive: Animate Stream Clustering.

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

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

Run this code
clusterer <- DSC_ThreeStage(DSC_p3c(),DSC_subspaceCluStream())
stream <- DSD_RandomRBFSubspaceGeneratorEvents()


## Not run: ------------------------------------
# animate_stream_interactive(clusterer,stream)
## ---------------------------------------------

Run the code above in your browser using DataLab