multi_barplot | R Documentation |
Adaption von 'lattice::barchart()' und Feineinstellung können mit 'lattice::update.trellis' erstellt werden.
multi_barplot(
...,
reorder = TRUE,
last = NULL,
main = NULL,
ylab = "",
include.percent = FALSE,
origin = 0,
xlab = if (include.percent) "Percent" else "Count",
xlim = NULL,
ylim = NULL,
wrap = TRUE,
use.level = 1
)
... |
an Summarise |
reorder , last |
an reorder2 |
main , ylab , origin , xlab |
an Lattice |
include.percent |
summary |
lattice plot
n <-99
DF <- data.frame(
Magazines = rbinom(n, 1,prob=.75),
Comic.books =rbinom(n, 1,prob=.25),
Fiction = rbinom(n, 1,prob=.5),
Sonstiges = rbinom(n, 1,prob=.35)
) |> transform(sex = cut(rnorm(n), 2, c("m", "f")))
multi_barplot( DF, .~ sex, last="Sonstiges")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.