TernaryMeshVertices | R Documentation |
Given the barycentric centroid coordinates of the sub-triangles in an equilateral triangle subdivided into k^2 equilateral sub-triangles, return the barycentric vertex coordinates of each sub-triangle.
TernaryMeshVertices(C)
C |
n by 4 matrix of barycentric centroid coordinates of n=k^2 sub-triangles. Column order: id, p1, p2, p3 with id=1,...,k^2. |
A numeric matrix with index, vertex id and barycentric vertex coordinates for each of the k^2 sub-triangles.
S. H. Derakhshan and C. V. Deutsch (2009): A Color Scale for Ternary Mixtures.
# NOTE: only intended for internal use and not part of the API
k = 2
C <- tricolore:::TernaryMeshCentroids(k)
tricolore:::TernaryMeshVertices(C)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.