get_subclust_enr_dotplot: Get scatter plot for association of a cell subtype proportion...

View source: R/get_prop_associations.R

get_subclust_enr_dotplotR Documentation

Get scatter plot for association of a cell subtype proportion with scores for a factor

Description

Get scatter plot for association of a cell subtype proportion with scores for a factor

Usage

get_subclust_enr_dotplot(
  container,
  ctype,
  res,
  subtype,
  factor_use,
  ctype_cur = ctype
)

Arguments

container

environment Project container that stores sub-containers for each cell type as well as results and plots from all analyses

ctype

character The cell type to plot

res

numeric The subcluster resolution to use

subtype

numeric The number corresponding with the subtype of the major cell type to plot

factor_use

numeric The factor to plot

ctype_cur

character The name of the major cell type used in the main analysis

Value

A ggplot object of each donor's cell subcluster proportions against donor scores for a selected factor.


scITD documentation built on Sept. 8, 2023, 5:11 p.m.