PlotDistance: Plots the distances next to each other

Description Usage Arguments Value See Also

View source: R/distance.R

Description

Create a bar plot of how the distances between two factors in categorical variable differ across another categorical variable. Also possible to select multiple distance measures and plot them simultaneously. Additionally each method can be z score normalised/rescaled to have a mean of allowing comparison across methods.

Usage

1
2
PlotDistance(seurat_object, group, group_start, group_destination,
  split_by = NULL, method = "all", rescale = TRUE)

Arguments

seurat_object

A seurat object

group

Seurat Categories or groups for which the distances between are calculated. Cell wise data.

group_start

Factor to plot the distance from

group_destination

Factor to plot the distance to

split_by

Second seurat category to split the calculations over.

method

Cluster Distance methods to use. Options are "single", "complete", "average", "centroid", "ward", "mahalanobis". Further explanation for these methods is given in the details.

rescale

Boolean. z score normalise across distance methods.

Value

ggplot bar chart of distances

See Also

Other distance_plot: PlotAverageDistance, PlotGroupMeans, PlotTotalDistance


sbrn3/disscat documentation built on Dec. 12, 2019, 7:54 a.m.