powered by
Function ternaryplot accepts a matrix of three part compositions or non-negative counts and presents these in a ternary diagram.
ternaryplot
ternaryplot(X, vertexlab = colnames(X), vertex.cex = 1, pch = 19, addpoints = TRUE, grid = FALSE, gridlabels = TRUE, ...)
NULL
A matrix of counts or compositions with three columns
Labels for the vertices of the tenary diagram
Character expansion factor for vertex labels
Plotting character for the compositions
Show the compositions addpoints=TRUE or not
addpoints=TRUE
Place a grid over the ternary diagram
Place grid labels or not
Additional arguments for the points function
points
Jan Graffelman (jan.graffelman@upc.edu)
data("Artificial") Xsim.com <- Artificial$Xsim.com colnames(Xsim.com) <- paste("X",1:3,sep="") ternaryplot(Xsim.com)
Run the code above in your browser using DataLab