R/plotting_functions.R
plot_inter_correlation_scExp.RdViolin plot of inter-correlation distribution between one or multiple groups and one reference group
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 )
| 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 |
A violin plot of inter-correlation