plot_overlap_heatmaps {GeneSelectR} | R Documentation |
Generate Heatmaps to Visualize Overlap and Similarity Coefficients between Feature Lists
Description
This function takes a list of matrices of overlap and similarity coefficients and generates heatmaps to visualize them.
Usage
plot_overlap_heatmaps(coefficients, save_plot = FALSE, filename = NULL)
Arguments
coefficients |
A list of matrices showing the Overlap, Jaccard, and Soerensen-Dice coefficients for the feature lists. |
save_plot |
A logical value indicating whether to save the heatmap plots to a file or not. Default is FALSE. |
filename |
A character string specifying the filename for the saved heatmap plots (if save_plot = TRUE). |
Value
A grid of ggplot2 heatmap objects visualizing the Overlap, Jaccard, and Soerensen-Dice coefficients.
The grid layout includes heatmaps for both 'inbuilt' and 'permutation' feature importance coefficients (if available).
If save_plot
is TRUE, the heatmaps are also saved to the specified file.
Examples
# Assuming `coefficients` is a list containing matrices for Overlap, Jaccard,
# and Soerensen-Dice coefficients
# For demonstration, let's create a mock coefficients list
mock_matrix <- matrix(runif(25), nrow = 5)
coefficients <- list(inbuilt_feature_importance_coefficient = list(overlap = mock_matrix,
jaccard = mock_matrix, soerensen = mock_matrix),
permutation_importance_coefficients = list(overlap = mock_matrix,
jaccard = mock_matrix, soerensen = mock_matrix))
# Plot the overlap heatmaps
heatmap_plots <- plot_overlap_heatmaps(coefficients)
print(heatmap_plots)
[Package GeneSelectR version 1.0.1 Index]