Learn R Programming

spinifex (version 0.3.2)

interpolate_manual_tour: 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

Run this code
# NOT RUN {
## This function is not meant for external use
dat_std <- scale_sd(wine[, 2:6])
clas <- wine$Type
bas <- basis_pca(dat_std)
mv <- manip_var_of(bas)
mt <- manual_tour(bas, mv)

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

Run the code above in your browser using DataLab