plot_distance_heatmap: plot_distance_heatmap

View source: R/plot_distance_heatmap.R

plot_distance_heatmapR Documentation

plot_distance_heatmap

Description

Takes the output of cell_distances and plot the distances as a heatmap.

Usage

plot_distance_heatmap(phenotype_distances_result, metric = "mean")

Arguments

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".

Value

A plot is returned

Examples

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)

TrigosTeam/SPIAT documentation built on Aug. 22, 2024, 7:50 p.m.