Skip to contents

Tracing is used to test if the index value varies smoothly over an interpolated tour path. The index value is calculated for the data d in each projection in the interpolated sequence. Note that all index functions must take the data in 2-d matrix format and return the index value.

Usage

get_trace(d, m, index_list, index_labels)

Arguments

d

data

m

list of projection matrices for the planned tour

index_list

list of index functions to calculate for each entry

index_labels

labels used in the output

Value

index values for each interpolation step

Examples

d <- spiral_data(100, 4)
m <- list(basis_matrix(1,2,4), basis_matrix(3,4,4))
index_list <- list(tourr::holes(), tourr::cmass())
index_labels <- c("holes", "cmass")
trace <- get_trace(d, m, index_list, index_labels)
#> Converting input data to the required matrix format.
plot_trace(trace)