# histrogram with EUROFAMCARE sample dataset
library(sjmisc)
data(efc)
sjp.grpfrq(efc$e17age,
efc$e16sex,
showValueLabels = FALSE)
# boxplot
sjp.grpfrq(efc$e17age,
efc$e42dep,
type = "box")
# -------------------------------------------------
# auto-detection of value labels and variable names
# -------------------------------------------------
# grouped bars using necessary y-limit
sjp.grpfrq(efc$e42dep,
efc$e16sex,
title = NULL)
# box plots with interaction variable
sjp.grpfrq(efc$e17age,
efc$e42dep,
interactionVar = efc$e16sex,
type = "box")
# Grouped bar plot ranging from 7 to 28
sjp.grpfrq(efc$neg_c_7,
efc$e42dep,
showValueLabels = FALSE)
# same data as line plot
sjp.grpfrq(efc$neg_c_7,
efc$e42dep,
type = "lines")Run the code above in your browser using DataLab