sneezy_centroids: Animate a tour path with a centroids overlay

Description Usage Arguments Examples

View source: R/tour.R

Description

Animate a tour path with a centroids overlay

Usage

1
2
3
sneezy_centroids(.data, basis = 1, neighbor = 1, row_subset = NULL,
  centroid.col = "black", apf = 1/10, frames = 100, height = 400,
  width = 400, ...)

Arguments

.data

A TourExperiment object

basis

The name or position of a basisSet in .data, defaults to the first element. The name of the basisSet will also be used to extract the underlying data.

neighbor

The name or position of a neighborSet in .data, defaults to the first element.

row_subset

The number of rows to subset the view on, the default which is NULL will select all rows.

apf

angles per frame (defaults to 1/30)

frames

number of frames in animation (defaults to 300)

height

the size of the animation in pixels

width

the size of the animation in pixels

...

other control options passed to tourr::display_xy()

centroids.col

A character(1) with a color name for the centroid points (default = "black")

Examples

1
2
3
4
5
multi_te <- TourExperiment(multi, X1:X10)
multi_te <- generate_bases(multi_te, .on = "view")
multi_te <- estimate_neighbors(multi_te, 10, .on = "view")

sneezy_centroids(multi_te)

sa-lee/sneezy documentation built on Nov. 25, 2019, 12:38 p.m.