Description Usage Arguments Value See Also Examples
Create an interactive scatterplot to explore the results of a gene set enrichment analysis. In the plot, one point is drawn for each gene set. The color and shape of the points are varied the gene set database. To compare results across multiple analyses, the p-value for the selected analysis (or column) is plotted on the vertical axis, and the “most extreme” p-value from the other analyses (or columns) is plotted along the horizontal axis.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | gsea_plotly(
gsea_res,
gene_set_info,
k,
file,
height = 600,
width = 800,
title = "gsea plot",
max_name_len = 44,
colors = c("gold", "darkblue", "tomato", "dodgerblue", "darkmagenta", "yellowgreen",
"dodgerblue", "olivedrab", "firebrick", "darkorange", "magenta", "darkblue", "gold",
"tomato", "gold", "olivedrab", "darkblue", "darkorange", "magenta", "yellowgreen",
"tomato", "dodgerblue"),
shapes = c(rep("circle", 4), rep("x", 10), rep("diamond", 8))
)
|
gsea_res |
An output from |
gene_set_info |
A data frame containing information about the gene sets. It should have, at a minimum, columns “name”, “id” and “database”. |
k |
The column of the gene set enrichment results used for the plot. |
file |
Save the interactive plot to this HTML file using
|
height |
Height of the plot in pixels. Passed as argument
“height” to |
width |
Width of the plot in pixels. Passed as argument
“width” to |
title |
The text used for the plot title. |
max_name_len |
Pathway names longer than this are shortened to this number of characters. |
colors |
Colors used to draw the points in the plot; passed as
argument “colors” to |
shapes |
Shapes used to draw the points in the plot; passed as
argument “shapes” to |
A plotly
object.
1 | # See perform_gsea for examples.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.