compute_half_range {liminal} | R Documentation |
Compute range of axes for a tour
Description
Compute range of axes for a tour
Usage
compute_half_range(.data, center = TRUE)
Arguments
.data |
A numeric matrix |
center |
Subtract |
Details
This function computes the maximum squared Euclidean distance of rows in a matrix like object. Mostly used internally for setting up xy-axis ranges for a tour animation.
Value
A numeric vector of length 1.
Examples
mv <- matrix(rnorm(300), ncol = 3)
compute_half_range(mv)
compute_half_range(mv, center = FALSE)
[Package liminal version 0.1.2 Index]