Skip to contents

Create a bar plot comparing stratified ancestry sets.

Usage

plot_stratified_sets(
  MX,
  MY,
  MR,
  x_var,
  fill_var,
  title = NULL,
  x_label = NULL,
  y_label = NULL
)

Arguments

MX

A data frame of train meta.

MY

A data frame of test meta.

MR

A data frame of inference meta.

x_var

Name of the variable for the x-axis (string).

fill_var

Name of the variable for the fill color (string).

title

Plot title (optional).

x_label

Label for the x-axis (optional).

y_label

Label for the y-axis (optional).

Value

A ggplot object.