Prepare lineplot data.
prep_tablebarplot.Rd
Prepare lineplot data.
Usage
prep_tablebarplot(
eatRep_dat,
subgroup_var = NULL,
parameter = "mean",
facet_var = "TR_BUNDESLAND",
total_facet = "total",
sig_niveau = 0.05,
total_subgroup = "total"
)
Arguments
- eatRep_dat
Object returned by
eatRep
.- subgroup_var
Character string of the column in
eatPlot_dat$group
oreatPlot_dat$plain
containing the subgroup mapping. Each supgroup will receive it's own line. IF there are subgroups within the data, this needs to be set, otherwise the data preparation might fail. Defaults toNULL
.- parameter
Character string. Contains the value in column
parameter
that is used for plotting the lines. Defaults to"mean"
.- facet_var
Character string of the variable containing information on groups some of the comparisons are made against. This is needed to decosntruct comparisons like
crossDiff
intocrossDiff
andcrossDiffTotal
(so a crossDiff comparison against the total group). Name might be a bit confusing, but is the same as inprep_lineplot
. Defaults toTR_BUNDESLAND
.- total_facet
Character string of the name of the total groups containing all other groups of the facet var. Defaults to
"total"
.- sig_niveau
Numeric indicating the border below which p-values will be considered significant. Defaults to
0.05
.- total_subgroup
Character string indicating the subgroup containing all other groups of the subgroup_var. Defaults to
"total"
.