kent.contour: Contour plot of the Kent distribution in S^2

View source: R/kent.contour.R

Contour plot of the Kent distribution in S^2R Documentation

Contour plot of the Kent distribution in S^2

Description

Contour plot of the Kent distribution in S^2.

Usage

kent.contour(G, param, n = 100, x = NULL, cont.line = FALSE)

Arguments

G

A 3 x 3 matrix whose first column is the mean direction. The second and third columns are the major and minor axes respectively.

param

A vector with the concentration kappa and ovalness \beta parameters (the \psi parameter has been absorbed inside the matrix G).

n

The number of grid points to consider over which the density is calculated.

x

This is either NULL (no data) or contains a 3 column matrix with compositional data.

cont.line

Do you want the contour lines to appear? If yes, set this TRUE.

Details

The user can plot only the contour lines of a Dirichlet with a given vector of parameters, or can also add the relevant data should they wish to.

Value

A ternary diagram with the points and the Dirichlet contour lines.

Author(s)

Michail Tsagris and Christos Adam.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr and Christos Adam pada4m4@gmail.com.

References

Graf, M. (2020). Regression for compositions based on a generalization of the Dirichlet distribution. Statistical Methods & Applications, (to appear).

See Also

compnorm.contour, bivt.contour, comp.kerncontour, mix.compnorm.contour

Examples

G <- matrix( c(0.05713382, 0.96029716, 0.27306608, -0.98809661,
0.01525976, 0.15307588, 0.1428314, -0.2785615, 0.9497382), ncol = 3 )
param <- c(2361.8401338, 1171.3808172, 0.1435577)
kent.contour(G, param)

Compositional documentation built on Oct. 23, 2023, 5:09 p.m.