switchplot {switchde} | R Documentation |
Plot gene behaviour and MLE sigmoid as a function of pseudotime.
switchplot(x, pseudotime, pars)
x |
Gene expression vector |
pseudotime |
Pseudotime vector (of same length as x) |
pars |
Fitted model parameters |
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
.
A ggplot2
plot of gene expression and MLE sigmoid
data(synth_gex) data(ex_pseudotime) sde <- switchde(synth_gex, ex_pseudotime) switchplot(synth_gex[1, ], ex_pseudotime, extract_pars(sde, "Gene1"))