Learn R Programming

rotations (version 1.6.5)

pointsXYZ: Project rotation data onto sphere

Description

Projection of rotation matrices onto sphere with given center.

Usage

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

Value

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

Arguments

data

data frame of rotation matrices in \(3\times 3\) matrix representation.

center

rotation matrix about which to center the observations.

column

integer 1 to 3 indicating which column to display.

Examples

Run this code
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

Run the code above in your browser using DataLab