create_manip_space: Create a manipulation space

Description Usage Arguments Value Examples

View source: R/create_manip_space.r

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

1
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

1
2
3
4
flea_std <- tourr::rescale(tourr::flea[,1:6])

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

nspyrison/spinifex documentation built on Aug. 23, 2019, 1:21 p.m.