plotScore: plotScore

View source: R/plot.R

plotScoreR Documentation

plotScore

Description

main function for plot DNB, same to DNBplot

Usage

plotScore(
  df_score,
  show = TRUE,
  save_pdf = FALSE,
  file_prefix = NULL,
  meta_levels = NULL,
  ...
)

Arguments

df_score

score data.frame, colnames includes 'SCORE','PCC_IN','PCC_OUT','SD','Names'(group)

show

whether to plot in console

save_pdf

whether to save into a pdf file

file_prefix

if save_pdf, the file prefix name

meta_levels

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

...

parameters to ggsave()

Value

plot(if ggplot2/gridExtra installed, return ggplot object) or pdf


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