Learn R Programming

spinifex (version 0.2.5)

create_manip_space: Create a manipulation space to rotate the manip variable in.

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 numeric matrix, the linear combination the original variables contribute to projection frame. Required, no default.

manip_var

The number of the variable/column to rotate.

Value

A (p, d + 1) orthonormal matrix, the manipulation space to manipulate the projection in.

Examples

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

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

Run the code above in your browser using DataLab