plotTrail {CellTrails} | R Documentation

## Visualize single trails

### Description

Method highlights a single trail on the trajectory map

### Usage

    plotTrail(sce, name)

### Arguments

`sce` | A `SingleCellExperiment` object
`name` | Name of the trail

### Details

A trail can be defined with the function `addTrail` between two landmarks. User-defined landmarks can be set with the function `userLandmarks`. This function visualizes the start and endpoints, and the pseudotime of a defined trail along the trajectory. The trail pseudotimes can be directly accessed via the `trails`.
An error is thrown if the `trail_name` is unknown. The function is case-sensitiv. All available trails can be listed by `trailNames`.

### Value

A `ggplot` object

### Author(s)

Daniel C. Ellwanger

### See Also

`addTrail` `userLandmarks` `trailNames` `trails`

### Examples

    # Example data
    data(exSCE)

    # Plot trail
    plotTrail(exSCE, name="Tr1")

[Package CellTrails version 1.10.0 Index]