morph_center {liminal}R Documentation

Morphing Projections

Description

Morphing Projections

Usage

morph_center(proj, half_range)

morph_identity(proj, half_range)

morph_radial(proj, half_range, p_eff)

Arguments

proj

a projection matrix

half_range

scale factor for projection

p_eff

Effective dimensionality of reference data set, see tourr::display_sage() for details.

Details

These functions are designed to alter the resulting projection after basis generation with the tourr and will change how the projections are animated with limn_tour() and limn_tour_link(). For morph_center() the projection is centered and then scaled by the half range, while morph_identity() only scales by half range. morph_radial() is an implemenation of the burning sage algorithm available in tourr::display_sage().

Value

A matrix with dimensions the same as proj.

Examples

proj <- matrix(rnorm(20), ncol = 2)
half_range <- compute_half_range(proj)
morph_center(proj, half_range)
morph_identity(proj, half_range)
morph_radial(proj, half_range, p_eff = 2)

[Package liminal version 0.1.2 Index]