Learn R Programming

mfcurve (version 1.0.2)

mfcurve_plotting: Create a two-panel mfcurve plot from processed statistics

Description

Generates an interactive two-panel plot showing group means (with optional confidence intervals) and corresponding factor combinations.

Usage

mfcurve_plotting(
  group_stats_vis,
  lower_data,
  grand_mean,
  outcome,
  factors,
  level,
  rounding = 2,
  showTitle = TRUE,
  plotOrigin = FALSE,
  CI = TRUE,
  mode = "collapsed",
  showGrandMean = TRUE,
  showSigStars = TRUE
)

Value

A plotly object (invisible).

Arguments

group_stats_vis

Data frame containing group-level summary statistics.

lower_data

Data frame defining the factor structure for the lower panel.

grand_mean

Numeric. The overall mean of the outcome variable.

outcome

Name of the outcome variable (string).

factors

Character vector of factor variable names.

level

Level for confidence intervals (e.g., 0.95).

rounding

Number of digits to round outcome values. Default is 2.

showTitle

Logical. Show the plot title? Default is TRUE.

plotOrigin

Logical. Force axes to include 0? Default is FALSE.

CI

Logical. Display confidence intervals? Default is TRUE.

mode

Labeling mode for the lower panel: "collapsed" (default) or "expanded".

showGrandMean

Logical. Show the grand mean overall groups. Default is TRUE.

showSigStars

Logical. Flag significant results. Default is TRUE.