Skip to contents

Create a scatter plot comparing the true log2 fold-change (log2FC) values between two simulated datasets fX and fY. The plot includes a 1:1 reference line to visualize agreement between datasets.

Usage

plot_sim_main_effect(
  fX,
  fY,
  ancestry_X = "Dataset X",
  ancestry_Y = "Dataset Y",
  title = NULL,
  x_label = NULL,
  y_label = NULL,
  point_size = 1
)

Arguments

fX

Data frame containing a column named true_log2FC for dataset X.

fY

Data frame containing a column named true_log2FC for dataset Y.

title

Optional character string for the plot title.

x_label

Optional x-axis label. Defaults to "Main effect in fX".

y_label

Optional y-axis label. Defaults to "Main effect in fY".

point_size

Numeric value controlling point size in the plot.

Value

A ggplot object showing main effect comparison.