Learn R Programming

tourr (version 1.1.0)

frozen_guided_tour: The frozen guided tour

Description

The frozen guided tour

Usage

frozen_guided_tour(frozen, index_f, d = 2, max.tries = 25)

Arguments

frozen

matrix of frozen variables, as described in freeze

index_f

the index function to optimise.

d

target dimensionality

max.tries

the maximum number of unsuccessful attempts to find a better projection before giving up

See Also

cmass, holes and lda_pp for examples of index functions. The function should take a numeric matrix and return a single number, preferrably between 0 and 1.

Examples

Run this code
frozen <- matrix(NA, nrow = 4, ncol = 2)
frozen[3, ] <- .5
animate_xy(flea[, 1:4], frozen_guided_tour(frozen, holes()))

Run the code above in your browser using DataLab