DNBplot: DNBplot

View source: R/main.R

DNBplotR Documentation

DNBplot

Description

Visualize the DNB score information

Usage

DNBplot(
  object,
  ranking = NULL,
  group = NULL,
  resource = NULL,
  show = TRUE,
  save_pdf = FALSE,
  file_prefix = NULL,
  meta_levels = NULL,
  ...
)

Arguments

object

S3:DNB_output or df_score (output of ScoreExtract)

ranking

for DNB_output, default 1 if NULL

group

for DNB_output, default random selected if NULL

resource

the actual module name, ranking & group will be ignored if use

show

whether to show, default TRUE

save_pdf

whether to save pdf file, default FALSE

file_prefix

the file prefix if save_pdf, default NULL

meta_levels

the order of meta-group in the plots, default levels(df_score$Names) if NULL

...

for future use

Value

plot or pdf

Author(s)

Kaiyu Wang, in ChenLab of CAS, Shanghai, China

Examples

data(data.example)
data(meta.example)
a <- DNBcompute(data.example, meta.example)
b <- DNBfilter(a, ntop = 5)
DNBplot(b, show = TRUE, save_pdf = FALSE)


Kaiyu-W/DNBr documentation built on April 27, 2024, 10:09 a.m.