Learn R Programming

SLICER (version 0.2.0)

graph_process_distance: Plot trajectory colored by process distance

Description

This function plots the embedding produced by LLE, coloring cells by their progress through a process.

Usage

graph_process_distance(traj_graph, embedding, start, cell_symbols = 16)

Arguments

traj_graph

Nearest neighbor graph built from LLE embedding

embedding

Low-dimensional LLE embedding of cells

start

Index of start cell

cell_symbols

Symbols to use for plotting each cell

Value

None

Examples

Run this code
# NOT RUN {
genes=1:200
cells=sample(1:500,30)
k=10
traj_lle = lle::lle(traj[cells,genes],m=2,k)$Y
traj_graph = conn_knn_graph(traj_lle,5)
start=1
graph_process_distance(traj_graph,traj_lle,start)
# }

Run the code above in your browser using DataLab