Description Usage Arguments Value See Also
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.
1 2 | PlotDistance(seurat_object, group, group_start, group_destination,
split_by = NULL, method = "all", rescale = TRUE)
|
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. |
ggplot bar chart of distances
Other distance_plot: PlotAverageDistance
,
PlotGroupMeans
,
PlotTotalDistance
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.