Learn R Programming

spinifex (version 0.1.0)

create_manip_space: Create a manipulation space

Description

Typically called by manual_tour(). Creates a (p, d) orthonormal matrix, the manipulation space from the given basis right concatenated with a zero vector, with manip_var set to 1.

Usage

create_manip_space(basis, manip_var)

Arguments

basis

A (p, d) orthonormal matrix.

manip_var

Number of the column/dimension to rotate.

Value

A (p, d+1) orthonormal matrix, the manipulation space.

Examples

Run this code
# NOT RUN {
flea_std <- tourr::rescale(tourr::flea[,1:6])

rb <- basis_random(n = ncol(flea_std))
create_manip_space(basis = rb, manip_var = 4)
# }

Run the code above in your browser using DataLab