plot_inter_correlation_scExp: Violin plot of inter-correlation distribution between one or...

View source: R/plotting_functions.R

plot_inter_correlation_scExpR Documentation

Violin plot of inter-correlation distribution between one or multiple groups and one reference group

Description

Violin plot of inter-correlation distribution between one or multiple groups and one reference group

Usage

plot_inter_correlation_scExp(
  scExp_cf,
  by = c("sample_id", "cell_cluster")[1],
  jitter_by = NULL,
  reference_group = unique(scExp_cf[[by]])[1],
  other_groups = unique(scExp_cf[[by]]),
  downsample = 5000
)

Arguments

scExp_cf

A SingleCellExperiment

by

Color by sample_id or cell_cluster

jitter_by

Add jitter points of another layer (cell_cluster or sample_id)

reference_group

Character containing the reference group name to calculate correlation from.

other_groups

Character vector of the other groups for which to calculate correlation with the reference group.

downsample

Downsample for plotting

Value

A violin plot of inter-correlation

Examples

data(scExp)
plot_intra_correlation_scExp(scExp)

vallotlab/ChromSCape documentation built on Oct. 15, 2023, 1:47 p.m.