Description Usage Arguments Value See Also Examples
Plots pathway expression values / sample as a heatmap. Ranks pathways based on their expression difference.
1 2 3 4 5 6 7 8 | ## S4 method for signature 'ReactomeAnalysisResult'
plot_gsva_heatmap(
object,
pathway_ids = NULL,
max_pathways = 20,
truncate_names = TRUE,
...
)
|
object |
The |
pathway_ids |
A vector of pathway ids. If set, only these pathways are included in the plot. |
max_pathways |
The maximum number of pathways to include. Only takes effect if |
truncate_names |
If set, long pathway names are truncated. |
... |
Additional parameters passed to the heatmap.2 function. |
None
Other ReactomeAnalysisResult functions:
get_result()
,
names,ReactomeAnalysisResult-method
,
open_reactome()
,
pathways()
,
plot_correlations()
,
plot_gsva_pathway()
,
plot_volcano()
,
reactome_links()
,
result_types()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # load the scRNA-seq example data
library(ReactomeGSA.data)
data(jerby_b_cells)
# perform the GSVA analysis
gsva_result <- analyse_sc_clusters(jerby_b_cells, verbose = FALSE)
# plot the heatmap
relevant_pathways <- c("R-HSA-983170", "R-HSA-388841", "R-HSA-2132295", "R-HSA-983705", "R-HSA-5690714")
plot_gsva_heatmap(gsva_result,
pathway_ids = relevant_pathways, # limit to these pathways
margins = c(6,30), # adapt the figure margins in heatmap.2
dendrogram = "col", # only plot column dendrogram
scale = "row", # scale for each pathway
key = FALSE, # don't display the color key
lwid=c(0.1,4)) # remove the white space on the left
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.