rotate_matrix: Generate rotation matrix / rotate a matrix

Description Usage Arguments Value

View source: R/functions_single_cell.R

Description

Generate rotation matrix / rotate a matrix

Usage

1
rotate_matrix(object, angle, rotation = FALSE)

Arguments

object

matrix; matrix with two columns

angle

numeric; degrees to rotate the tSNE/UMAP/PCA embedding by

rotation

logical; if TRUE returns rotation matrix instead of the rotated matrix (default: FALSE)

Value

Rotated matrix


MyersGroup/testisAtlas documentation built on Nov. 29, 2020, 9:21 p.m.