Plot Simulated Interaction Effects
Source:R/plot_sim_interaction_effect.R
plot_sim_interaction_effect.RdCreate a histogram of the interaction effects (true_log2FC) from a
simulated interaction effects table fI.
Usage
plot_sim_interaction_effect(
fI,
exclude_zeros = TRUE,
title = NULL,
x_label = NULL,
y_label = NULL,
bins = 50
)Arguments
- fI
Data frame containing a column named
true_log2FCfor interaction effects.- exclude_zeros
Logical, whether to exclude exact zeros from the histogram.
- title
Optional character string for the plot title.
- x_label
Optional x-axis label. Defaults to
"Interaction effect (log2FC)".- y_label
Optional y-axis label. Defaults to
"Count".- bins
Integer specifying the number of histogram bins. Default is
50.