new_tour: Create a new tour.

Description Usage Arguments Details Value See Also

Description

Create a new tour.

Usage

1
new_tour(data, tour_path, start)

Arguments

data

the data matrix to be projected

tour_path

basis generator, a function that generates a new basis, called with the previous projection and the data set. For more complicated tour paths, this will need to be a closure with local variables. Should return NULL if the tour should terminate

start

starting projection, if omitted will use default projection from generator

Details

The tour function provides the common machinery behind all tour methods: interpolating from basis to basis, and generating new bases when necessary. You should not have to call this function.

Value

a function with single argument, step_size. This function returns a list containing the new projection, the currect target and the number of steps taken towards the target.

See Also

save_history, render and animate for examples of functions that use this function to run dynamic tours.


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

Related to new_tour in tourr...