preparePlotData {CEDA} | R Documentation |
Prepare data for density plot and ridge plot
Description
Input a data frame with each gene one row, and geneID, geneLFC, geneFDR as columns. This function will stratify genes into five groups based on their FDR levels: <=0.001, (0.001,0.01], (0.01,0.05], (0.05,0.5], (0.5,1]
Usage
preparePlotData(data, gene.fdr)
Arguments
data |
A data frame containing each gene in one row, and at least three columns with geneID, geneLFC, and geneFDR. |
gene.fdr |
A numeric variable (column) in the data frame, corresponding to the gene level FDR |
Value
A data frame based on the original data frame, with an additional column "group" indicating which FDR group this gene belongs to.
[Package CEDA version 1.1.1 Index]