anchored_orthogonal_distance {tourr}R 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


[Package tourr version 1.2.0 Index]