eigenVariablePlot: Plot an eigenvector vs a variable

Description Usage Arguments Value See Also

Description

The function select an approproate plot to show a relationship between an eigenvector and a variable from the metadata. If the variable is numeric or integer a scatterplot will be produced, if the variable is a factor or a character a boxplot will be produced. The eigenvector will be plotted on the y axis a and the variable from the metadata will be plotted on the x axis. The plot is based on ggplot.

Usage

1
eigenVariablePlot(pcs, variables, PC = 1, var.name, title = NULL)

Arguments

pcs

a matrix with eigen vectors, V matrix of an SVD

variables

a data frame with clinical/technical variables pertaining to the data

PC

number of PC to plot, default is 1 (first)

var.name

name of the variable from variable data frame

title

plot title

Value

ggplot object

See Also

codefs


moosik/snorm documentation built on May 23, 2019, 6:11 a.m.