plot_density: Plot Density

Description Usage Arguments Details Examples

View source: R/plot_density.R

Description

This function will draw a distribution for a given value

Usage

1
2
3
4
5
6
7
8
9
plot_density(
  input,
  val,
  title = "",
  color_by = "NA",
  statistic = "mean",
  log = T,
  type = "density"
)

Arguments

input

the input ex_sc

val

Either "UMI_sum" or a gene name

title

The title of the plot

color_by

The metadata in pData that will be used to break the distributions into groups. Can be left blank.

statistic

Either the "mean" or "median" can be calculated

Details

This will draw a UMI distribution for a given value, broken into groups if color_by != "NA"

Examples

1
draw_density(input = ex_sc_example, val = "UMI_sum", color_by = "Cluster", statistic = "mean")

kgellatl/SignallingSingleCell documentation built on Dec. 29, 2021, 4:12 p.m.