plot | R Documentation |
Displays a matrix of ternary plots.
## S4 method for signature 'CompositionMatrix,missing'
plot(
x,
...,
by = groups(x),
margin = NULL,
color = palette_color_discrete(),
symbol = palette_shape()
)
x |
A |
... |
Further graphical parameters. |
by |
A |
margin |
A |
color |
A palette |
symbol |
A palette |
plot()
is called for its side-effects: is results in a graphic being
displayed (invisibly return x
).
N. Frerebeau
isopleuros::ternary_pairs()
, isopleuros::ternary_plot()
Other plot methods:
as_graph()
,
barplot()
,
hist()
,
plot_logratio
## Data from Day et al. 2011
data("kommos", package = "folio") # Coerce to compositional data
kommos <- remove_NA(kommos, margin = 1) # Remove cases with missing values
coda <- as_composition(kommos, parts = 3:8, groups = 1)
## Use ceramic types for grouping
plot(coda)
## Center and scale ternary plots
plot(coda, by = NULL, center = TRUE, scale = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.