varianceInDirection: Portion of cell variance in a given direction

View source: R/TrajectoryGeometry.R

varianceInDirectionR Documentation

Portion of cell variance in a given direction

Description

This function takes a direction and a set of cells epressed in PCs and determines the fraction of total variance in the given direction.

Usage

varianceInDirection(direction, cells)

Arguments

direction

- a numeric giving the direction expressed in PCs

cells

- a set of cells given as a matrix where each row is a cell and each column is a PC. This must have at least as many PCs as the direction

Value

The fraction of total variance (across that many PCs) in the given direction.


AnnaLaddach/TrajectoryGeometry documentation built on Oct. 14, 2022, 10:27 a.m.