DNBplot: DNBplot

Description Usage Arguments Details Author(s) Examples

View source: R/DNB.r

Description

Visualize the result of DNB model

Usage

1
DNBplot(DNB_obj, file_prefix = NULL, show = FALSE)

Arguments

DNB_obj

output of function 1) DNB or 2) maxDNB

file_prefix

prefix of save pdf file, default NULL

show

whether if plot be shown in Console, default FALSE

Details

plot by 1) ggplot2 if installed, or 2) R built-in plot

plot into {file_prefix}(_)(max)DNB_(gg)plot.pdf

Author(s)

Kaiyu Wang, in ChenLab of CAS, Shanghai, China

Examples

1
2
3
4
5
6
7
DNB_obj <- list(CI = runif(3, 0, 1),
                PCC_IN = runif(3, 0, 1),
                PCC_OUT = runif(3, 0, 1),
                SD = runif(3, 0, 1),
                group = c("a","b","c"))
class(DNB_obj) <- 'DNB_obj' # or 'maxDNB_obj'
DNBplot(DNB_obj, show = TRUE)

Kaiyu-W/DNB documentation built on Jan. 1, 2022, 5:19 p.m.