addEllipse: Add an confidence ellipses or other features to a ggpairs...

Description Usage Arguments Value

Description

This function is necessary because there is no way to set aesthetics in ggpairs for only a portion of the plot matrix. If ellipseArgList is empty, then no ellipses will be drawn. If globalGGobjs is non-empty, then it will be added (+) to each panel. You might use this to alter the color scale

Usage

1
2
addEllipse(ggpairsObj, panels, ellipseArgList = list(lwd = 1, alpha = 1),
  pointsArgList = list(), globalGGobjs = list())

Arguments

ggpairsObj

output from ggpairs

panels

numeric vector giving rows/columns to modify from the _lower_ triangle of the plot matrix

ellipseArgList

list of ggplot aesthetics to be set to fixed values for the ellipses, eg, lwd or alpha

pointsArgList

list of ggplot aesthetics to be rewritten for the purposes of calling geom point, eg, size or alpha

globalGGobjs

vector of ggplot2 theme or scale elements

Value

ggpairs object with modified panels


amcdavid/SingleCellAnalysis documentation built on May 10, 2019, 10:27 a.m.