path_index | R Documentation |
Compute index values for a tour history.
path_index(history, index_f, data = attr(history, "data"))
history |
list of bases produced by |
index_f |
index function to apply to each basis |
data |
dataset to be projected on to bases |
save_history
for options to save history
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.