KYCG_plotBar: Bar plot to show most enriched CG groups from testEnrichment

View source: R/KYCG_plot.R

KYCG_plotBarR Documentation

Bar plot to show most enriched CG groups from testEnrichment

Description

The input data frame should have an "estimate" and a "FDR" columns.

Usage

KYCG_plotBar(df, y = "-log10(FDR)", n = 20, order_by = "FDR", label = FALSE)

Arguments

df

KYCG result data frame

y

the column to be plotted on y-axis

n

number of CG groups to plot

order_by

the column by which CG groups are ordered

label

whether to label significant bars

Details

Top CG groups are determined by estimate (descending order).

Value

grid plot object

Examples

KYCG_plotBar(data.frame(
  estimate=runif(10,0,10), FDR=runif(10,0,1), nD=10,
  overlap=as.integer(runif(10,0,30)), group="g", dbname=seq_len(10)))

zwdzwd/sesame documentation built on Nov. 11, 2024, 9:33 a.m.