visualize.gamma.fits: Plotting function to visualize simulated mean values from...

View source: R/plotting.R

visualize.gamma.fitsR Documentation

Plotting function to visualize simulated mean values from gamma distribution compare to mean values used for the fitting

Description

Plotting function to visualize simulated mean values from gamma distribution compare to mean values used for the fitting

Usage

visualize.gamma.fits(
  mean.vals,
  gamma.parameters,
  nGenes = 21000,
  lower.dist = 1e-05,
  zero.pos = 1e-06,
  num.bins = 30
)

Arguments

mean.vals

Vector with mean values used for fitting the gamma distribution

gamma.parameters

Parameters of the gamma distribution (already filtered for the cell type of interest)

nGenes

number of genes used for fitting the gamma function (parameter num.genes.kept in the function mixed.gamma.estimation)

lower.dist

Lowest value which should be shown in the histogram

zero.pos

Position where the zero component should be plotted at (needs to be smaller than lower.dist)

num.bins

Number of bins in the histogram

Value

ggplot object of a histogram with logarithmized x axis


heiniglab/scPower documentation built on Jan. 9, 2025, 12:13 p.m.