plot_logratio {nexus} | R Documentation |
Plot Log-Ratios
Description
Displays a density plot.
Usage
## S4 method for signature 'LogRatio,missing'
plot(
x,
...,
order = NULL,
decreasing = FALSE,
groups = get_groups(x),
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 = "topright")
)
Arguments
x |
A |
... |
Further graphical parameters, particularly,
|
order |
A |
decreasing |
A |
groups |
A |
rug |
A |
ticksize |
A length-one |
ncol |
An |
flip |
A |
xlab , ylab |
A |
main |
A |
ann |
A |
axes |
A |
frame.plot |
A |
legend |
A |
Value
plot()
is called for its side-effects: is results in a graphic being
displayed (invisibly return x
).
Author(s)
N. Frerebeau
See Also
Other plot methods:
as_graph()
,
barplot()
,
hist()
,
plot()
Examples
## 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) # Use ceramic types for grouping
## Log ratio
clr <- transform_clr(coda)
plot(clr, group = NULL, flip = TRUE, border = "black", col = NA)
plot(clr, flip = TRUE)