plot_cell_distances_violin: plot_cell_distances_violin

View source: R/plot_cell_distances_violin.R

plot_cell_distances_violinR Documentation

plot_cell_distances_violin

Description

Plots distances between cells as a violin plot

Usage

plot_cell_distances_violin(cell_to_cell_dist)

Arguments

cell_to_cell_dist

Data.frame containing the distance output between cell types. The functions that generate the distances can be calculate_minimum_distances_between_celltypes and calculate_pairwise_distances_between_celltypes.

Value

A plot is returned

Examples

distances <- calculate_pairwise_distances_between_celltypes(SPIAT::defined_image,
cell_types_of_interest = c("Immune1", "Immune2"), feature_colname="Cell.Type")
plot_cell_distances_violin(distances)

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