regressionPlot {MetaIntegrator}R Documentation

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

Description

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

Usage

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

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

[Package MetaIntegrator version 2.1.3 Index]