plot | R Documentation |
Displays a scatter plot.
## S4 method for signature 'LogRatio,missing'
plot(
x,
...,
jitter_factor = 1,
jitter_amount = NULL,
xlab = NULL,
ylab = NULL,
main = NULL,
sub = NULL,
ann = graphics::par("ann"),
axes = TRUE,
frame.plot = axes
)
## S4 method for signature 'GroupedLogRatio,missing'
plot(
x,
...,
jitter_factor = 1,
jitter_amount = NULL,
color = NULL,
symbol = NULL,
xlab = NULL,
ylab = NULL,
main = NULL,
sub = NULL,
ann = graphics::par("ann"),
axes = TRUE,
frame.plot = axes,
legend = list(x = "topright")
)
x |
A |
... |
Further graphical parameters. |
jitter_factor , jitter_amount |
A length-one |
xlab , ylab |
A |
main |
A |
sub |
A |
ann |
A |
axes |
A |
frame.plot |
A |
color |
A (named) vector of colors (will be mapped to the group names
of |
symbol |
A (named) vector of colors (will be mapped to the group names
of |
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()
,
boxplot()
,
hist()
,
pairs()
## Data from Day et al. 2011
data("kommos", package = "folio")
kommos <- remove_NA(kommos, margin = 1) # Remove cases with missing values
coda <- as_composition(kommos, parts = 3:22) # Coerce to compositional data
## Log ratio
clr <- transform_clr(coda)
## Boxplot
plot(clr)
## Use ceramic types for grouping
grp <- group(coda, by = kommos$type)
clr <- transform_clr(grp)
plot(clr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.