Usage
ternaryplot(x, scale = 1, dimnames = NULL, dimnames.position = c("corner","edge","none"),
dimnames.color = "black", id = NULL, id.color = "black", coordinates = FALSE,
grid = TRUE, grid.color = "gray", labels = c("inside", "outside", "none"),
labels.color = "darkgray", border = "black", bg = "white", pch = 19, cex = 1,
prop.size = FALSE, col = "red", main = "ternary plot", ...)
Arguments
x
a matrix with three columns.
scale
row sums scale to be used.
dimnames
dimension labels (defaults to the column names of
x
).
dimnames.position, dimnames.color
position and color of dimension labels.
id
optional labels to be plotted below the plot
symbols. coordinates
and id
are mutual exclusive.
id.color
color of these labels.
coordinates
if TRUE
, the coordinates of the points are
plotted below them. coordinates
and id
are mutual exclusive.
grid
if TRUE
, a grid is plotted. May optionally
be a string indicating the line type (default: "dotted"
).
labels, labels.color
position and color of the grid labels.
border
color of the triangle border.
pch
plotting character. Defaults to filled dots.
cex
a numerical value giving the amount by which plotting text
and symbols should be scaled relative to the default. Ignored for
the symbol size if prop.size
is not FALSE
.
prop.size
if TRUE
, the symbol size is plotted
proportional to the row sum of the three variables, i.e. represents
the weight of the observation.
...
additional graphics parameters (see par
)