regressionPlot: Generate a plot which draws a regression line between the...

Description Usage Arguments Value Author(s) Examples

View source: R/regressionPlot.R

Description

Generate a plot which draws a regression line between the Meta Score and a continuous variable phenotype.

Usage

1
2
3
4
regressionPlot(filterObject, datasetObject,
  continuousVariableColumn = "continuous",
  formattedVariableName = "Continuous Variable", corMethod = "pearson",
  correlationCorner = "bottomRight")

Arguments

filterObject

a MetaFilter object containing the signature genes that will be used for the z-score calculation

datasetObject

a Dataset object (typically independent validation dataset) for comparison in a regression plot

continuousVariableColumn

the label of the column in $pheno that specifies the continuous variable to compare (default: 'continuousVariableColumn')

formattedVariableName

label which will be used on the x-axis on the plot

corMethod

method which will be passed to cor.test

correlationCorner

one of topLeft, topRight, bottomLeft, bottomRight (default: bottomRight)

Value

Returns a regression plot as ggplot2 plot object

Author(s)

Winston A. Haynes

Examples

1
2
3
4
regressionPlot(tinyMetaObject$filterResults[[1]], 
               tinyMetaObject$originalData$Whole.Blood.Study.1,
               continuousVariableColumn="age",
               formattedVariableName="Age")

MetaIntegrator documentation built on March 26, 2020, 6:29 p.m.