Wrapper for Seurat::FeatureScatter
with a few extras like saving options, plot title, and correlation in the plot subtitle
Usage
plot_featurescatter(
sobj,
feat1,
feat2,
group = "sample_id",
title = NULL,
savename = NULL,
corr_method = c("pearson", "kendall", "spearman"),
height = 7,
width = 9
)
Arguments
- sobj
Seurat object
- feat1
string; 1st feature to plot (x-axis)
- feat2
string; 2nd feature to plot (y-axis)
- group
string; metadata colname to group by
- title
string; plot title
- savename
string; filepath to save plot under
- corr_method
string;
stats::cor
method for correlation calculation- height
numeric; plot height
- width
numeric; plot width