plotComponent: Generate plots for single component

Description Usage Arguments Value Examples

View source: R/plottingFunctions.R

Description

Generate gene weight and coefficient plots for a single independent or principal component.

Usage

1
2
plotComponent(input_list = NULL, comp_idx, geneinfo_df = NULL,
  plot_here = TRUE)

Arguments

input_list

ICA or PCA object generated by 'runICA()' or 'runPCA()'

comp_idx

Component number to be plotted.

geneinfo_df

Dataframe containing information about the gene positions. This is used to generate the gene weight plot

plot_here

If set to TRUE it will generate the plots in the current session, and if set to FALSE it will return a list of plots only and not generate plots in the current session.

Value

List of plots

Examples

1
2
3
4
data(expr_data)

pca_object <- runPCA(expr_data)
plotComponent(pca_object, comp_idx = 1)

jinhyunju/picaplot documentation built on May 19, 2019, 10:35 a.m.