powered by
The volcano function produces the volcano plot for logratio / fp-effect vs corresponding p-values.
volcano(x, pValue, pointLabels, topPValues = 10, topXvalues = 10, smoothScatter = TRUE, xlab = NULL, ylab = NULL, main = NULL, newpage = TRUE, additionalPointsToLabel = NULL, additionalLabelColor = "red", dir = TRUE)
Numeric vector of logratios or covariate effect values to be plotted.
Numeric vector of corresponding p-values obtained from some statistical test.
Character vector providing the texts for the points to be labelled in the plot.
Number of top p-values to be labelled. Default value is 10.
Number of top logratios or covariate effect values to be labelled. Default value is 10.
Logical parameter to decide if a smooth plot is expected or not. Default is TRUE.
Text for the x-axis of the plot. Default is NULL.
Text for the y-axis of the plot. Default is NULL.
Text for the main title of the plot. Default is NULL.
Logical parameter
Set of points other than the top values to be labelled in the plot. Default is NULL.
Colour of the additionally labelled points. Default colour is red.
Logical parameter deciding if the top values should be in decreasing (= TRUE) or increasing (= FALSE) order. Default is TRUE.
A plot which looks like a volcano.
Creates a plot which looks like a volcano with the interesting points labelled within the plot.
# NOT RUN { volcano(x=jmRes$CovEffect1,pValue=jmRes$rawP1,pointLabels=rownames(jmRes), topPValues = 10, topXvalues = 10,xlab="FP Effect (alpha)",ylab="-log(p-values)") # }
Run the code above in your browser using DataLab