setmap {RVenn} | R Documentation |
Draw a clustered heatmap showing presence/absence of the elements.
Description
This function is based on the package 'pheatmap'. ggvenn
function is useful for 2-3 sets, if you need to show interactions between
many sets, you can show the presence/absence of the elements among all the
sets and cluster both the sets and the elements based on Jaccard distances.
Usage
## S4 method for signature 'Venn'
setmap(venn, slice = "all", element_clustering = TRUE,
set_clustering = TRUE, method = "average", legend = TRUE,
title = NA, element_fontsize = 10, set_fontsize = 10)
Arguments
venn |
(Required) A |
slice |
(Optional) The names or the indices of sets of interest. Default is "all", meaning the union will be calculated for all the sets. |
element_clustering |
(Optional) Boolean values determining if elements should be clustered. |
set_clustering |
(Optional) Boolean values determining if sets should be clustered. |
method |
(Optional) Clustering method used. Accepts the same values as
|
legend |
(Optional) Boolean values determining if the legend should be drawn. |
title |
(Optional) Title of the heatmap. |
element_fontsize |
(Optional) Font size of the elements. |
set_fontsize |
(Optional) Font size of the sets. |
Value
Presence/absence heatmap of the sets.
Examples
venn = Venn(list(letters[1:10], letters[3:12], letters[6:15], letters[9:16],
letters[15:25], letters[12:20]))
setmap(venn)
setmap(venn, slice = 1:4, element_clustering = FALSE, set_clustering = FALSE)