Skip to contents

Plot categorical percentile rank comparison between two GSEA squared signatures

Usage

plot_GSEAsq_density(
  GSEAsq_df1,
  GSEAsq_df2,
  name1,
  name2,
  plot_pval = TRUE,
  cat_order = NULL,
  title = "GSEA Squared",
  colors = c("firebrick", "lightslateblue"),
  rug = TRUE,
  savename = NULL,
  plot_fmt = "png",
  height = 8,
  width = 8
)

Arguments

GSEAsq_df1

df/string; "gsea_squared-df.txt" df or path for GSEAsq result 1

GSEAsq_df2

df/string; "gsea_squared-df.txt" df or path for GSEAsq result 2

name1

string; descriptor for GSEAsq result 1

name2

string; descriptor for GSEAsq result 2

plot_pval

logical; TRUE to include KS p-value per category in plot

cat_order

vector; desired order of GSEAsq categories

title

string; overall plot title

colors

vector; first color to signify result 1, second for result 2

rug

logical; TRUE for rugplot below density plot

savename

string; filepath to save outputs under (no extension)

plot_fmt

string; file extension to save plot as

height

numeric; plot height

width

numeric; plot width

Value

facet wrapped ggplot object