Plot permutation-based T-statistics with observed values and p-values
Source:R/plot_null_distribution.R
plot_null_distribution.Rd
Plots null distributions of T-statistics from perm_interaction_effect()
.
Adds dashed lines for observed T-statistics, optional normal fit overlay, and optional density overlay.
Usage
plot_null_distribution(
data,
features = NULL,
p_normal = TRUE,
p_empirical = TRUE,
show_normal = TRUE,
show_empirical = TRUE,
bins = 50,
title = NULL,
point_size = 0.5
)
Arguments
- data
A list from
perm_interaction_effect()
, must includeT_null
andsummary_stats
.- features
Character vector of features to plot. Defaults to first 9 if NULL.
- show_normal
Logical. Overlay fitted normal curve? (default TRUE)
- show_empirical
Logical. Overlay empirical density curve? (default TRUE)
- bins
Integer number of histogram bins (default 50)
- title
Optional plot title.
- point_size
Numeric value controlling point/label size (currently not used in plotting directly).
- show_param
Logical. Show parametric p-values? (default TRUE)
- show_emp
Logical. Show empirical p-values? (default TRUE)