.project_ortho {CellTrails} | R Documentation

## AUX: Orthogonal projection

### Description

Orthogonally projects samples onto trajectory

### Usage

    .project_ortho(cl, g, X)

### Arguments

`cl` | Trajectory states; factor vector
`g` | Trajectory tree; igraph object
`X` | Lower dimensional ordination of trajectory samples

### Value

A `list` containing the following components:

``Y`` | Projection
``X.c`` | Mediancentres
``lambda`` | Projection lambda (position: inside/outside of edge)
``adjmat`` | Adjacency matrix with sample count per edge
``error`` | Projection error per sample
``edgeId`` | ID of each edge
``edgeId2Edge`` | Mapping of edge to edgeId
``edge`` | For each sample its assigned edge

### Author(s)

Daniel C. Ellwanger

[Package CellTrails version 1.12.0 Index]