plot_logratio | R Documentation |
Displays a density plot.
## S4 method for signature 'LogRatio,missing'
plot(
x,
...,
by = groups(x),
color = palette_color_discrete(),
rug = TRUE,
ticksize = 0.05,
ncol = NULL,
flip = FALSE,
xlab = NULL,
ylab = NULL,
main = NULL,
ann = graphics::par("ann"),
axes = TRUE,
frame.plot = axes,
legend = list(x = "top")
)
x |
A |
... |
Further graphical parameters, particularly,
|
by |
A |
color |
A palette |
rug |
A |
ticksize |
A length-one |
ncol |
An |
flip |
A |
xlab , ylab |
A |
main |
A |
ann |
A |
axes |
A |
frame.plot |
A |
legend |
A |
plot()
is called for its side-effects: is results in a graphic being
displayed (invisibly return x
).
N. Frerebeau
Other plot methods:
as_graph()
,
barplot()
,
hist()
,
plot()
## 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, groups = 1)
## Log ratio
clr <- transform_clr(coda)
## Density plot
plot(clr, by = NULL, flip = TRUE)
## Use ceramic types for grouping
plot(clr, flip = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.