paths_index: Compute index value for many histories.

Description Usage Arguments Details Examples

Description

Compute index value for many histories.

Usage

1
paths_index(bases_list, index_f)

Arguments

bases_list

list of histories produced by save_history

index_f

index function to apply to each projection

Details

This is a convenience method that returns a data frame summarising the index values for multiple tour paths.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
holes1d <- guided_tour(holes, 1)
# Perform guided tour 5 times, saving results
tries <- replicate(5, save_history(flea[, 1:6], holes1d), simplify = FALSE)
# Interpolate between target bases 
itries <- lapply(tries, interpolate)

paths <- paths_index(itries, holes)
head(paths)

if (require(ggplot2)) {
qplot(step, value, data=paths, group=try, geom="line")
qplot(step, improvement, data=paths, group=try, geom="line")
}

tourr documentation built on May 2, 2019, 5:28 p.m.

Related to paths_index in tourr...