rotateXY: Rotate coordinates

View source: R/mfishMapping.r

rotateXYR Documentation

Rotate coordinates

Description

Rotates the scaledX and scaledY elements of a fishScaleAndMap output list so that the axis of interest (e.g., cortical layer) is paralled with the x cooridate plan. Rotation code is from https://stackoverflow.com/questions/15463462/rotate-graph-by-angle

Usage

rotateXY(datFish, flatVector = NULL, flipVector = NULL, subset = NULL)

Arguments

datFish

a fishScaleAndMap output list

flatVector

a TRUE/FALSE vector ordred in the same way as the elements (e.g., cells) in datIn where all TRUE values correspond to cells who should have the same Y coordinate (e.g., be in the same layer). Alternatively a numeric vector of cell indices to include

flipVector

a numeric vector of values to ensure proper reflection on Y-axes (e.g., layer; default=NULL)

subset

a boolean or numeric vector of the elements to retain

Value

a fishScaleAndMap output list with updated scaledX and scaleY coordinates


AllenInstitute/mfishtools documentation built on July 5, 2023, 4:20 p.m.