gen_path: Generates a curve of the field

View source: R/field_common.R

gen_pathR Documentation

Generates a curve of the field

Description

Given the ternary coordinates of the starting point of the curve, it generates the path of arrows until the edge of the ternary plot is reached.

Usage

gen_path(p0, DeltaB, edge = 0.01, nmax = Inf, flink)

Arguments

p0

starting point of the curve.

DeltaB

either a matrix Δ^TB\in\textbf{R}^{1\times 2} or a vector of length 2, if the model is categorical; otherwise a matrix Δ^TB\in\textbf{R}^{1\times 1} or a numeric, if the model is ordinal.

edge

width of the border of the ternary plot.

nmax

maximum number of vectors.

flink

named list of two functions: linkfun and linkinv. The former is the link function, whereas the latter is its inverse.

Value

Object of class list, where each component is a list of two components: the ternary coordinates of the starting point of the arrow, and the ternary coordinates of the tip of the arrow.

See Also

linkfun(), linkinv().


plot3logit documentation built on July 19, 2022, 9:07 a.m.