Contour plot of the Kent distribution in S^2 {Compositional} | R Documentation |
Contour plot of the Kent distribution in S^2.
kent.contour(G, param, n = 100, x = NULL, cont.line = FALSE)
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 β parameters (the ψ 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. |
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.
A ternary diagram with the points and the Dirichlet contour lines.
Michail Tsagris and Christos Adam.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr and Christos Adam pada4m4@gmail.com.
Graf, M. (2020). Regression for compositions based on a generalization of the Dirichlet distribution. Statistical Methods & Applications, (to appear).
norm.contour, bivt.contour, comp.kerncontour, mixnorm.contour
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)