plot_sig_bar: Make bar plots of ligand/receptor expression and interaction...

Description Usage Arguments Value Examples

View source: R/plot_sig_bar.R

Description

This plot makes bar plots for ligand expression, receptor expression, raw interaction scores and normalized interaction scores for a specific ligand-receptor pair

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
plot_sig_bar(
  ligand_exprs,
  receptor_exprs,
  cell_labels,
  filenames,
  raw_color,
  norm_color,
  ligand_name,
  receptor_name,
  y_lim = 1
)

Arguments

ligand_exprs

a numeric vector of ligand expression values across cell types

receptor_exprs

a numeric vector of receptor expression values across cell types

cell_labels

a character vector of cell type labels

filenames

prefix for the name of the figures

raw_color

color for the bar plot of raw interaction scores

norm_color

color for the bar plot of normalized interaction scores

ligand_name

name of the ligand

receptor_name

name of the receptor

ylim

maximum y axis for the normalized interaction scores.Default is 1

Value

returns bar plots of ligand and receptor expression, as well as raw and normalized interaction scores

Examples

1
plot_sig_bar(c(5,1,200),c(5,1,200),c("A","B","C"),"Figure4A_baseline",'slateblue3','slateblue1',"EGF","EGFR",1)

yuliangwang/talklr documentation built on Feb. 17, 2020, 5:02 a.m.