# histrogram with EUROFAMCARE sample dataset
library(sjmisc)
data(efc)
sjp.grpfrq(efc$e17age, efc$e16sex, show.values = FALSE)
# boxplot
sjp.grpfrq(efc$e17age, efc$e42dep, type = "box")
# grouped bars
sjp.grpfrq(efc$e42dep, efc$e16sex, title = NULL)
# box plots with interaction variable
sjp.grpfrq(efc$e17age, efc$e42dep, intr.var = efc$e16sex, type = "box")
# Grouped bar plot
sjp.grpfrq(efc$neg_c_7, efc$e42dep, show.values = FALSE)
# same data as line plot
sjp.grpfrq(efc$neg_c_7, efc$e42dep, type = "line")
Run the code above in your browser using DataLab