loading_distribution: Plot overall distribution of gene loadings

Description Usage Arguments Value Examples

View source: R/plotting.R

Description

loading_distribution Plot overall distribution of gene loadings

Usage

1
2
loading_distribution(results, omic = 1, split_by_pip = FALSE,
  bw = "nrd0", n = 2^9, facet_type = "zoom")

Arguments

results

list; object containing result (output of read_output)

omic

numeric or character; index of the omic type to plot, or name of omic type if you assigned a name

split_by_pip

logical; Should density by plotted seperately for loadings with PIPs either side of 0.5

bw

bandwidth used in density estimation, see ?density for more information

n

number of points for density evaluation, see ?density for more information

facet_type

"zoom" or "wrap"; if split_by_pip is true, should the density be plotted in seperate graphs or the same graph with a zoom.

Value

A ggplot2 object

Examples

1
2
data(results)
loading_distribution(results, split_by_pip = TRUE, facet_type="wrap")

marchinilab/SDAtools documentation built on Jan. 31, 2020, 3:51 a.m.