PlotAverageDistance: Plots the average distance between two factors of a group

Description Usage Arguments Details Value See Also

View source: R/distance.R

Description

Can choose to identify the groups, split and method. The distance between group 1 and group 2

Usage

1
2
3
PlotAverageDistance(seurat_object, group, group_start, group_destination,
  split_by = NULL, error_bars = "sd", mode = "density",
  rotate_x = 90)

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.

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.

Details

Need to run AverageDistance() beforehand.

Error bars can be: "sd" or "se" Mode can be: "density" or "bar"

Value

ggplot of distances

See Also

Other distance_plot: PlotDistance, PlotGroupMeans, PlotTotalDistance


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