plot_stats: Plot descriptive statistics

Description Usage Arguments Details Value See Also Examples

View source: R/scMethrix_plot.R

Description

Plot descriptive statistics

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
plot_stats(
  scm,
  assay = "score",
  stat = c("mean", "median"),
  per_chr = FALSE,
  ignore_chr = NULL,
  ignore_samples = NULL,
  n_col = NULL,
  n_row = NULL,
  pheno = NULL,
  verbose = TRUE
)

Arguments

scm

scMethrix; get_stats will be run for the specified assay

assay

string; name of an existing assay. Default = "score"

stat

string; Can be mean or median. Default mean

per_chr

boolean; plot per chromosome

ignore_chr

string; Chromsomes to ignore. If NULL, all chromosome will be used. Default NULL

ignore_samples

list of strings; Samples to ignore. If NULL, all samples will be used. Default NULL

n_col

integer; number of columns. Passed to facet_wrap

n_row

integer; number of rows. Passed to facet_wrap

pheno

string; Col name of colData(m). Will be used as a factor to color different groups

verbose

boolean; Flag for outputting function status messages. Default = TRUE

Details

plot descriptive statistics results from get_stats

Value

ggplot2 object

See Also

get_stats

Examples

1
2
data('scMethrix_data')
plot_stats(scMethrix_data)

CompEpigen/scMethrix documentation built on Nov. 6, 2021, 3:09 p.m.