Learn R Programming

clusterfly (version 0.4)

cfly_animate: Dynamic plot: Animate glyph colours

Description

This function will animate until you manually break the loop using Ctrl-Break or Ctrl-C.

Usage

cfly_animate(cf, clusters = seq_along(cf$clusters), pause = 1, print = TRUE, max_iterations = 100)

Arguments

cf
list of cluster ids that you want to animate across
clusters
clusters to display
pause
clusters number of seconds to pause between each change
print
print current cluster to screen?
max_iterations
maximum number of interations

Examples

Run this code
# Press Ctrl-Break or Ctrl-C to exit
if (interactive()) {
o <- olive_example()
cfly_animate(cfly_clarify(o), max = 5)
close(o)
}

Run the code above in your browser using DataLab