src.visualise.phase_correction_graphs

Code for generating plots from the phase correction models

Functions

generate_phase_correction_plots(mds, output_dir)

Generates all plots in this file, with required arguments and inputs

Classes

ArrowPlotModelExplanation(**kwargs)

Generates a graphic that explains how the model works.

ArrowPlotPhaseCorrection(**kwargs)

Creates a plot showing the average strength, direction, and balance of the coupling within each duo.

BarPlot(**kwargs)

Creates a plot showing the coupling coefficients per instrument and duo, designed to look similar to fig 2.(c) in Jacoby et al. (2021).

BarPlotCouplingStrengthAsymmetry(**kwargs)

Creates a plot showing the mean differences between coupling and strength for each pair of duos, with confidence intervals obtained via bootstrapping

BarPlotCouplingStrengthAsymmetryComparison(...)

Creates grouped barplots showing comparisons of coupling strength and asymmetry between pairwise duo combinations

BarPlotMixedEffectsRegressionCoefficients(...)

Creates a barplot showing regression coefficients and confidence intervals for mixed effects models

BarPlotPerformerListenerSuccess(**kwargs)

BarPlotPhaseCorrectionModelComparison(**kwargs)

Creates barplots showing the difference in R2 between models.

BoxPlot(**kwargs)

Creates a figure showing correction to partner coefficients obtained for each performer in a duo, stratified by a given variable (defaults to jitter scale).

BoxPlotR2WindowSize(**kwargs)

Creates a boxplot of average R2 values per rolling window size

HistPlotModelTerms(**kwargs)

HistPlotR2(**kwargs)

Creates histograms of model parameters stratified by trial and instrument, x-axis variable defaults to R-squared

PairGrid(**kwargs)

Creates a pairgrid plot for a given x and colour variable.

PointPlotCouplingStrengthAsymmetry(**kwargs)

Creates a plot showing the mean differences between coupling and strength for each pair of duos, with confidence intervals obtained via bootstrapping

PointPlotSelfPartnerCouplingByInstrument(...)

Creates a pointplot showing bootstrapped differences in coupling coefficients between members of each duo

RegPlot(df, **kwargs)

Deprecated(?) class for creating regression plots between multiple variables

RegPlotGrid(**kwargs)

Creates a grid of scatter and regression plots, showing relationship between primary variables (tempo slope, ioi variability, asynchrony, self-reported success) and coupling balance.

RegPlotGridStrAsyn(**kwargs)

Creates a grid of scatter and regression plots, showing relationship between primary variables (tempo slope, ioi variability, asynchrony, self-reported success) and coupling balance.

SingleConditionAnimation(**kwargs)

Creates an animation of actual and predicted tempo slope that should(!) be synchronised to the AV_Manip videos.

SingleConditionPlot(**kwargs)

Generate a nice plot of a single performance, showing actual and predicted tempo slope, relative phase adjustments, phase correction coefficients to partner and self for both performers

src.visualise.phase_correction_graphs.generate_phase_correction_plots(mds: list[src.analyse.phase_correction_models.PhaseCorrectionModel], output_dir: str) None

Generates all plots in this file, with required arguments and inputs