plotPairwiseReg: Plot multiple linear regressions for each subgroup for a pair...

View source: R/plotPairwiseReg.R

plotPairwiseRegR Documentation

Plot multiple linear regressions for each subgroup for a pair of genes.

Description

Visualize pairwise gene coexpression correlations for a set of subtypes for two particular genes.

Usage

plotPairwiseReg(geneA, geneB, datExpr, design_mat,
  legend_pos = "topleft", title = "Regression models")

Arguments

geneA

The first gene to plot.

geneB

The second gene in coexpression with the first gene.

datExpr

A gene expression matrix (gene rows by sample columns).

design_mat

A model matrix (sample rows by group columns) with 0 or 1 denoting membership in the group.

legend_pos

The position of the legend on the plot. Default = "topleft".

title

The title of the plot. Default = "Regression models"

Value

A plot of geneA vs geneB expression with subgroup correlations highlighted.


ryananeff/superNOVA documentation built on March 29, 2024, 5:31 p.m.