An internal helper function containing the logic to "intelligently" create
plots from simulated data. It automatically chooses between spaghetti plots and jitter/point-range plots depending on
the specified design and model family.It derives sensible defaults for plot aesthetics from the design,
if they are not supplied directly via the plot_sim_model function.
.plot_data(
data,
design,
formula,
family,
x_var,
group_var,
color_var,
facet_var,
n_data_points
)A ggplot object.
The data frame to plot.
The PowRPriori_design object.
An lme4-style formula (e.g. outcome ~ predictor1 * predictor2 + (1 | subject))
The model family. Defaults to "gaussian", other possible values are "binomial" or "poisson".
Strings specifying variables for plot aesthetics.
The maximum number of trajectories in spaghetti plots.