scale_to_median_radius: Scale one table to the median radius of another

Description Usage Arguments Value

View source: R/mvar_utils.R

Description

When making a biplot, the scales of the two sets of points aren't always comparable – only the *directions* of the projections of feature variables are meaningful. This helper rescales the points in the matrix x2 to have radius comparable to the points in x1. Specifically, we rescale x2 so it's median radius is equal to the median radius of the x1 points.

Usage

1

Arguments

x1

The reference matrix used to rescale x2.

x2

The matrix to rescale.

Value

x2_scaled The matrix x2 rescaled to have the same median radius as x1.


krisrs1128/mvarVis documentation built on Oct. 13, 2019, 11:14 p.m.