sneezy_tour: Animate a tour path directly with TourExperiment

Description Usage Arguments Value See Also Examples

View source: R/tour.R

Description

Animate a tour path directly with TourExperiment

Usage

1
2
sneezy_tour(.data, basis = 1, row_subset = NULL, 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.

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, width

the size of the animation in pixels

...

other control options passed to tourr::display_xy()

Value

A gganimate::gif_file that can be embedded in an Rmd or R console viwer pane.

See Also

tourr::animate_xy(), tourr::display_xy()

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_neighbors(multi_te)

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