plotCellDensity {LineagePulse}R Documentation

Plot density of cells in continuous covariate

Description

Uses kernel density estimate.

Usage

plotCellDensity(objLP)

Arguments

objLP

(LineagePulseObject) LineagePulseObject to base plot on.

Value

gplotKDE (ggplot object) ggplot2 kernel density estimator plot.

Author(s)

David Sebastian Fischer

Examples

lsSimulatedData <- simulateContinuousDataSet(
    scaNCells = 100,
    scaNConst = 10,
    scaNLin = 10,
    scaNImp = 10,
    scaMumax = 100,
    scaSDMuAmplitude = 3,
    vecNormConstExternal=NULL,
    vecDispExternal=rep(20, 30),
    vecGeneWiseDropoutRates = rep(0.1, 30))
objLP <- runLineagePulse(
    counts = lsSimulatedData$counts,
    dfAnnotation = lsSimulatedData$annot,
    strMuModel = "impulse")
gplotCellDensity <- plotCellDensity(objLP = objLP)
#print(gplotCellDensity)


[Package LineagePulse version 1.4.0 Index]