boxplot.leem | R Documentation |
Produce box-and-whisker plot(s) of leem class object and computes the necessary values for the development of the plot.
## S3 method for class 'leem'
boxplot(
x,
type = "rawdata",
details = FALSE,
horizontal = FALSE,
coef = 1.5,
main = NULL,
xlab = NULL,
ylab = NULL,
col = rgb(0, 175, 239, maxColorValue = 255),
...
)
x |
R object (list) of class leem. Use |
type |
character argument. Default is |
details |
Logical argument. Default is |
horizontal |
Logical argument indicating if the boxplots should be horizontal; default |
coef |
this determines how far the plot whiskers extend out from the box. If |
main |
Title name. Defaults is |
xlab |
a label for the |
ylab |
a label for the |
col |
Character vector. Default |
... |
further arguments passed to or from other methods. |
library(leem)
# Example 1
x <- rnorm(30, 100, 2) |>
new_leem(variable = 2) |>
tabfreq()
boxplot(x, details = TRUE)
# Example 2
boxplot(x, type = "classes")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.