interpolate_manual_tour: Interpolates a manual tour

View source: R/1_manual_tour.r

interpolate_manual_tourR Documentation

Interpolates a manual tour

Description

Internal function. Interpolates a manual tour over the stored theta, and phi specifications. Returns an interpolated basis_array to be consumed by array2df.

Usage

interpolate_manual_tour(basis_array, angle = 0.05)

Arguments

basis_array

array, of the target bases, the extrema of the walk/segments.

angle

The step size between interpolated frames, in radians.

See Also

Other manual tour adjacent functions: create_manip_space(), manip_var_of(), manual_tour(), rotate_manip_space()

Examples

## This function is not meant for external use
dat  <- scale_sd(wine[, 2:6])
clas <- wine$Type
bas  <- basis_pca(dat)
mv   <- manip_var_of(bas)
mt   <- manual_tour(bas, mv)

interp <- spinifex:::interpolate_manual_tour(basis_array = mt, angle = .1)
dim(interp)
str(interp)

spinifex documentation built on May 29, 2024, 1:23 a.m.