switchplot {switchde}R Documentation

Plot gene behaviour

Description

Plot gene behaviour and MLE sigmoid as a function of pseudotime.

Usage

switchplot(x, pseudotime, pars)

Arguments

x

Gene expression vector

pseudotime

Pseudotime vector (of same length as x)

pars

Fitted model parameters

Details

This plots expression of a single gene. Fitted model parameters can either be specified manually or can be extracted from the data.frame returned by switchde using the function extract_pars.

Value

A ggplot2 plot of gene expression and MLE sigmoid

Examples

data(synth_gex)
data(ex_pseudotime)
sde <- switchde(synth_gex, ex_pseudotime)
switchplot(synth_gex[1, ], ex_pseudotime, extract_pars(sde, "Gene1"))

[Package switchde version 1.20.0 Index]