geom_gsea | R Documentation |
Imports: ggplot2
geom_gsea(
df,
labelsize = 4,
zeroline = F,
prettyGSEA = T,
ncol = NULL,
nrow = NULL,
linecolor = "green",
linesize = 1,
tickcolor = "black",
ticksize = 0.5,
zerocolor = "black",
zerosize = 0.5,
zerotype = "dashed",
...
)
df |
data.frame, calculated by the function gseaCurve |
labelsize |
number, font size of the statistics (if gsea is provided) |
zeroline |
boolean, should a zero line be displayed? |
prettyGSEA |
boolean, should some aesthetics be automatically added? Adds a 0-line, regulates y-breaks and labels the axes. |
ncol |
Number of rows and columns. |
nrow |
Number of rows and columns. |
linecolor |
string, color of the main gsea line |
linesize |
number, thickness of the main gsea line |
tickcolor |
string, color of the ticks representing hit genes |
ticksize |
number, thickness of the ticks representing hit genes |
zerocolor |
string, color of the zeroline |
zerosize |
number, thickness of the zeroline |
zerotype |
string, linetype of the zeroline (e.g. "dotted") |
... |
Other arguments passed on to |
uses the functions geom_gseaLine, geom_gseaTicks and geom_gseaGradient, from this package
a list of ggplot layers, ready to be added to a ggplot object
library(gggsea)
library(ggplot)
curve <- gseaCurve(myRankedlist, mySetlist)
ggplot() + geom_gsea(curve) + theme_gsea()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.