Partial builders for logistic regression plots
Source:R/lr-plot-partials-datastrip.R, R/lr-plot-partials-group.R, R/lr-plot-partials-model.R, and 3 more
lr_partial.RdPartial builders for logistic regression plots
Usage
build_datastrip_jitter(
data,
config,
stratify,
exposure,
response,
strata,
style
)
build_group_boxplot(data, config, stratify, exposure, response, strata, style)
build_group_violin(data, config, stratify, exposure, response, strata, style)
build_model_ribbonline(
data,
config,
stratify,
exposure,
response,
strata,
style
)
build_model_spaghetti(
data,
config,
stratify,
exposure,
response,
strata,
style
)
build_quantile_errorbar(
data,
config,
stratify,
exposure,
response,
strata,
style
)
build_summary_pvalue(data, config, stratify, exposure, response, strata, style)Value
A geom, or a list of geoms. More precisely, a list of
objects that can be added to a ggplot2 plot. The expectation is
that these objects will be added to a partially-constructed plot
which, at a minimum, already has the base theme applied. For
"model", "summary", and "quantile", the pieces will be added to
a plot that already has a coord that sets the axis limits. For
the "datastrip" and "group" plots, the plot object does not yet
have a coord. The expectation, however, is that the builder will
supply an x-axis limit that is consistent with the base plot. That
is, since all component plots use the exposure variable for the
x-axis, they should use the values stored in exposure$limits tp
set the x-axis limits.