Skip to contents

PlotGeneDistCohort

Usage

PlotGeneDistCohort(
  merged_av_data,
  save_path,
  save_name,
  title = NULL,
  nrow = 5,
  height = 8,
  width = 10,
  plot_subset = FALSE,
  genes_plot = NULL
)

Arguments

merged_av_data

data returned for a single cell type by `GetTidySummary`

save_path

file path to save results

save_name

name of plot saved to `save_path`

title

title of plot

nrow

number of rows to facet genes plotted on

height

ggsave param

width

ggsave param

plot_subset

whether to subset to some of the genes in `merged_av_data`

genes_plot

the subset of genes to plot

Value

nothing

Examples

if (FALSE) {
gene_highlight =  c("IRF1","TNFRSF17","ABL1")
mono = GetTidyCohort(av.exprs.list = av, celltype.index = 7, genes.use = gene_highlight)
PlotGeneDistCohort(merged_av_data = mono,
                   save_name = "mono_highlight_512",
                   save_path = figpath,
                   title = paste0(names(av[7]), "genesub" ),
                   height = 3.8, width = 4.5,
                   nrow = 2)
 }