highest_components: Which component has the highest loading for a given gene

Description Usage Arguments Value Examples

View source: R/plotting.R

Description

which_component plot component loadings for a given gene

Usage

1
highest_components(results, variable_name, top_n = 5, omic = 1)

Arguments

results

list; object containing result (output of read_output)

variable_name

character string; name or index of variable e.g. gene

top_n

integer; the number of components to label

omic

integer or character; index of the omic type to calculate contributions for, or name of omic type if you assigned a name

Value

A ggplot2 object

Examples

1
2

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