morphs: Morphing Projections

Description Usage Arguments Details Value Examples

Description

Morphing Projections

Usage

1
2
3
4
5
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

1
2
3
4
5
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)

liminal documentation built on May 28, 2021, 9:06 a.m.