22–25 Jul 2025
EAM2025
Atlantic/Canary timezone

Enhancing Model Visualization in Statistical Analysis: Introducing the R Package MoPlot

24 Jul 2025, 11:15
15m
Faculty of Social Sciences and Communication. (The Pyramid)/12 - Room (Faculty of Social Sciences and Communication. (The Pyramid))

Faculty of Social Sciences and Communication. (The Pyramid)/12 - Room

Faculty of Social Sciences and Communication. (The Pyramid)

30
Show room on map
Oral Presentation Applications/Substantive areas Session 3 : "Measurement and Analysis of violence and discrimination"

Speakers

Dr Umberto Granziol (University of Padova)Ms Marianna Musa (University of Padova)Mr Lorenzo Atzeni (University of Padova)Mr Stefano Dalla Bona (University of Padova)

Abstract

In many statistical analysis methods, interpreting model coefficients solely from the coefficient table can be difficult or counterintuitive (i.e., the coefficient of polynomial contrasts or in generalized additive models). To facilitate understanding, researchers often rely on effect plots. However, most statistical software generates plots that primarily display trends/curve for continuous variables or raw/predicted means for categorical variables, without providin key details such as the contrast types used, effect sizes of each effect, or the information about statistical significance.
We introduce MoPlot, a novel R package designed to address these limitations. By simply inputting a fitted model, MoPlot generates plots for both single and interaction effects while explicitly accounting for the contrast coding scheme applied in the model. The package automatically visualizes planned comparisons, providing a clearer representation of the related categorical predictors. Additionally, it generates comprehensive figure captions detailing the effects displayed, including significance information.
Furthermore, MoPlot includes a “coefficient mode,” allowing users to visualize model coefficients alongside their corresponding effect sizes—a crucial feature for meta-analytic studies. The package supports a wide range of contrast coding schemes available in R, such as treatment, sum, sliding difference, polynomial, Helmert, reverse Helmert, and custom-defined contrasts. Real-world data examples will illustrate how MoPlot enhances interpretability in models with both continuous and categorical predictors.
Finally, we discuss the implications of using MoPlot across various statistical models and highlight its potential contributions to reproducibility and open science. By improving the clarity of effect visualizations, MoPlot provides researchers with a more informative and transparent approach to statistical analysis.

Oral presentation Enhancing Model Visualization in Statistical Analysis: Introducing the R Package MoPlot
Author Umberto Granziol; Marianna Musa; Lorenzo Atzeni; Stefano Dalla Bona
Affiliation Department of General Psychology, University of Paova, Italy; Department of Developmental Psychology and Socialization, University of Padova, Italy
Keywords Linear Models; Plot; Contrasts; MoPlot

Primary authors

Dr Umberto Granziol (University of Padova) Ms Marianna Musa (University of Padova) Mr Lorenzo Atzeni (University of Padova) Mr Stefano Dalla Bona (University of Padova)

Presentation materials