pointsXYZ: Project rotation data onto sphere

View source: R/plot.R

pointsXYZR Documentation

Project rotation data onto sphere

Description

Projection of rotation matrices onto sphere with given center.

Usage

pointsXYZ(data, center = id.SO3, column = 1)

Arguments

data

data frame of rotation matrices in 3-by-3 matrix representation.

center

rotation matrix about which to center the observations.

column

integer 1 to 3 indicating which column to display.

Value

Data frame with columns X, Y, Z standing for the respective coordinates in 3D space.

Examples

Rs<-ruars(20, rcayley)

#Project the sample's 3 axes onto the 3-shere centered at the identity rotation

pointsXYZ(Rs, center = id.SO3, column = 1)  #x-axis
pointsXYZ(Rs, center = id.SO3, column = 2)  #y-axis
pointsXYZ(Rs, center = id.SO3, column = 3)  #z-axis

rotations documentation built on June 25, 2022, 1:06 a.m.