Description Usage Arguments Details Value See Also
Can choose to identify the groups, split and method. The distance between group 1 and group 2
1 2 3 | PlotAverageDistance(seurat_object, group, group_start, group_destination,
split_by = NULL, error_bars = "sd", mode = "density",
rotate_x = 90)
|
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. |
error_bars |
Method for plot error bars. Error bars can be NULL (no error bars), "se" (standard error), "sd" (standard deviation). |
mode |
Whether to plot a bar or density plot. Options are "bar" (bar plot), "density" (density plot) |
rotate_x |
The rotation of the x axis labels. Default is 90 (perpendicular) to the x axis. This is only relevant for bar plots. |
Need to run AverageDistance() beforehand.
Error bars can be: "sd" or "se" Mode can be: "density" or "bar"
ggplot of distances
Other distance_plot: PlotDistance
,
PlotGroupMeans
,
PlotTotalDistance
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.