path_index: Compute index values for a tour history.

Description Usage Arguments See Also Examples

View source: R/path-index.r

Description

Compute index values for a tour history.

Usage

1
path_index(history, index_f, data = attr(history, "data"))

Arguments

history

list of bases produced by save_history (or otherwise)

index_f

index function to apply to each basis

data

dataset to be projected on to bases

See Also

save_history for options to save history

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
fl_holes <- save_history(flea[, 1:6], guided_tour(holes), sphere = TRUE)
path_index(fl_holes, holes)
path_index(fl_holes, cmass)

plot(path_index(fl_holes, holes), type = "l")
plot(path_index(fl_holes, cmass), type = "l")

# Use interpolate to show all intermediate bases as well
hi <- path_index(interpolate(fl_holes), holes)
hi
plot(hi)

nspyrison/tourr documentation built on Aug. 29, 2019, 2:56 a.m.