boxplot | R Documentation |
Displays box-and-whisker plots of the given (grouped) values.
## S4 method for signature 'LogRatio'
boxplot(
x,
...,
range = 1.5,
width = NULL,
varwidth = FALSE,
notch = FALSE,
outline = TRUE,
plot = TRUE,
horizontal = FALSE,
xlab = NULL,
ylab = NULL,
main = NULL,
sub = NULL,
ann = graphics::par("ann")
)
## S4 method for signature 'GroupedLogRatio'
boxplot(
x,
...,
range = 1.5,
width = NULL,
varwidth = FALSE,
notch = FALSE,
outline = TRUE,
plot = TRUE,
horizontal = FALSE,
color = NULL,
xlab = NULL,
ylab = NULL,
main = NULL,
sub = NULL,
ann = graphics::par("ann"),
legend = list(x = "topright")
)
x |
A |
... |
Further graphical parameters. |
range |
A length-one |
width |
A |
varwidth |
A |
notch |
A |
outline |
A |
plot |
A |
horizontal |
A |
xlab , ylab |
A |
main |
A |
sub |
A |
ann |
A |
color |
A (named) vector of colors (will be mapped to the group names
of |
legend |
A |
boxplot()
is called for its side-effects: is results in a graphic being
displayed (invisibly return x
).
N. Frerebeau
graphics::boxplot()
Other plot methods:
as_graph()
,
barplot()
,
hist()
,
pairs()
,
plot()
## 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
boxplot(clr)
## Use ceramic types for grouping
grp <- group(coda, by = kommos$type)
clr <- transform_clr(grp)
boxplot(clr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.