Plot descriptive statistics

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

Value

ggplot2 object

Details

plot descriptive statistics results from get_stats

See also

Examples

data('scMethrix_data') plot_stats(scMethrix_data)
#> Getting descriptive statistics...
#> Finished in 0.75s