View source: R/plot_distance_heatmap.R
plot_distance_heatmap | R Documentation |
Takes the output of cell_distances and plot the distances as a heatmap.
plot_distance_heatmap(phenotype_distances_result, metric = "mean")
phenotype_distances_result |
Dataframe output from 'calculate_summary_distances_between_celltypes' or 'calculate_minimum_distances_between_celltypes'. |
metric |
Metric to be plotted. One of "mean", "std.dev", "median", "min" or "max". |
A plot is returned
dists <- calculate_pairwise_distances_between_celltypes(SPIAT::defined_image,
cell_types_of_interest = c("Tumour","Immune1"), feature_colname = "Cell.Type")
summary_distances <- calculate_summary_distances_between_celltypes(dists)
plot_distance_heatmap(summary_distances)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.