anchored_orthogonal_distance: Calculate orthogonal distances

View source: R/slicing-util.r

anchored_orthogonal_distanceR Documentation

Calculate orthogonal distances

Description

For each datapoint this function calculates the orthogonal distance from the anchored projection plane.

Usage

anchored_orthogonal_distance(plane, data, anchor = NULL)

Arguments

plane

matrix specifying the projection plane

data

data frame or matrix

anchor

A vector specifying the reference point to anchor the plane If NULL (default) the slice will be anchored at the origin.

Value

distance vector


tourr documentation built on Aug. 25, 2023, 1:08 a.m.