multi_barplot: multi_barplot

multi_barplotR Documentation

multi_barplot

Description

Adaption von 'lattice::barchart()' und Feineinstellung können mit 'lattice::update.trellis' erstellt werden.

Usage

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
)

Arguments

...

an Summarise

reorder, last

an reorder2

main, ylab, origin, xlab

an Lattice

include.percent

summary

Value

lattice plot

Examples


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")



stp4/stp25plot documentation built on March 29, 2025, 4:26 p.m.