cfly_animate: Dynamic plot: Animate glyph colours

Description Usage Arguments Examples

View source: R/clusterfly.r

Description

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

Usage

1
2
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

1
2
3
4
5
6
# Press Ctrl-Break or Ctrl-C to exit
if (interactive()) {
o <- olive_example()
cfly_animate(cfly_clarify(o), max = 5)
close(o)
}

Example output

Loading required package: rggobi
R session is headless; GTK+ not initialized.

clusterfly documentation built on May 2, 2019, 9:12 a.m.