Description Usage Arguments Value Author(s) Examples
View source: R/regressionPlot.R
Generate a plot which draws a regression line between the Meta Score and a continuous variable phenotype.
1 2 3 4 | regressionPlot(filterObject, datasetObject,
continuousVariableColumn = "continuous",
formattedVariableName = "Continuous Variable", corMethod = "pearson",
correlationCorner = "bottomRight")
|
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) |
Returns a regression plot as ggplot2 plot object
Winston A. Haynes
1 2 3 4 | regressionPlot(tinyMetaObject$filterResults[[1]],
tinyMetaObject$originalData$Whole.Blood.Study.1,
continuousVariableColumn="age",
formattedVariableName="Age")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.