Plot external information on a feature plot
plot_external.Rd
This function is currently used to plot CNV for one dataset, on a projection from a combined Seurat object containing several datasets
Usage
plot_external(
sobj,
info_to_plot,
what = NULL,
bg_color = "gray92",
reduction = NULL,
dims = c(1, 2),
pt_size = 0.5,
analysis = "other"
)
Arguments
- sobj
Seurat object
- info_to_plot
DATAFRAME : a dataframe in which row names are a subset of colnames(sobj), and with one column correspond to information to plot (no default)
- what
CHARACTER : a colname in info_to_plot to represent data for (default to the first numeric or factor column)
- bg_color
CHARACTER : color for background cells. Color "wheat" is also a good color when plotting something using white color (default to "gray92")
- reduction
CHARACTER : a reduction in names(sobj@reductions) to represent data on (default to NULL)
- dims
VECTOR : a numeric vector containing the two dimensions to plot (default to c(1,2))
- pt_size
NUMERIC : point size (default to 0.5)
- analysis
CHARACTER : if "cnv" or "gene", plot nice color (default to "other")