Description Usage Arguments Author(s) Examples
This function draws a volcano plot using the robust fold change value and the p-value obtained from robust t-test.
1 2 3 | RobVolPlot(folds, pvals, cexcutoff = 0.7, cexlab = 0.5,
plimit = 0.05, fclimit = 2, xlab = "log2 Robust Fold Change",
tab ylab = "-log10 Robust t-Test P-value", main = "Robust Volcano Plot", ...)
|
folds |
A vector of fold changes with metabolite names. |
pvals |
A vector of corresponding p-values with metabolite names. |
cexcutoff |
Font size of the cut-off labels. |
cexlab |
Font size of the variable labels. |
plimit |
A numeric indicating the p value cutoff. The default is set to 0.05. |
fclimit |
A numeric indicating the lower fold cutoff. The default is set to 2. |
xlab |
x-axis label. |
ylab |
y-axis label. |
main |
Plot title. |
... |
Other graphical parameters. |
Nishith Kumar <nk.bru09@gmail.com>
1 2 3 4 5 6 7 8 9 10 | data(DummyFullData)
##Calculation of fold change values
fcval<-foldChngCalc(DummyFullData,nSampG1=20,nSampG2=20)
##Calculation of p-values
pval<-NULL
for (i in 1:dim(DummyFullData)[1]){
pval[i]<-p.valcalc(DummyFullData[i,1:20],DummyFullData[i,21:40])
}
##Robust volcano plot
RobVolPlot(fcval,pval , cexcutoff = 0.7, cexlab = 0.8, plimit = .05,fclimit = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.