plot.ternary | R Documentation |
Plots triplets of compositional data on a ternary diagram
## S3 method for class 'ternary'
plot(
x,
type = "grid",
pch = NA,
pos = NULL,
labels = names(x),
showpath = FALSE,
bg = NA,
col = "cornflowerblue",
ticks = seq(0, 1, 0.25),
ticklength = 0.02,
lty = 2,
lwd = 1,
...
)
x |
an object of class |
type |
adds annotations to the ternary diagram, one of either
|
pch |
plot character, see |
pos |
position of the sample labels relative to the plot symbols if pch != NA |
labels |
vector of strings to be added to the plot symbols |
showpath |
if |
bg |
background colour for the plot symbols (may be a vector) |
col |
colour to be used for the background lines (if applicable) |
ticks |
vector of tick values between 0 and 1 |
ticklength |
number between 0 and 1 to mark the length of the ticks |
lty |
line type for the annotations (see |
lwd |
line thickness for the annotations |
... |
optional arguments to the generic |
ternary
data(Namib)
tern <- ternary(Namib$PT,'Q',c('KF','P'),c('Lm','Lv','Ls'))
plot(tern,type='QFL.descriptive',pch=21,bg='red',labels=NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.