KYCG_plotWaterfall: create a waterfall plot of log(estimate) given test...

View source: R/KYCG_plot.R

KYCG_plotWaterfallR Documentation

create a waterfall plot of log(estimate) given test enrichment

Description

create a waterfall plot of log(estimate) given test enrichment

Usage

KYCG_plotWaterfall(
  df,
  order_by = "Log2(OR)",
  size_by = "-log10(FDR)",
  label_by = "dbname",
  n_label = 10
)

Arguments

df

data frame where each row is a database with test enrichment result

order_by

the column by which CG groups are ordered

size_by

the column by which CG group size plot

label_by

column in df to be used as the label (default: dbname)

n_label

number of datapoints to label

Value

grid

Examples


library(SummarizedExperiment)
df <- rowData(sesameDataGet('MM285.tissueSignature'))
query <- df$Probe_ID[df$branch == "fetal_brain" & df$type == "Hypo"]
results <- testEnrichment(query, "TFBS", platform="MM285")
KYCG_plotWaterfall(results)


zwdzwd/sesame documentation built on April 28, 2024, 12:48 p.m.