Learn R Programming

rotations

The goal of rotations is to provide tools for working with rotation data. A stable version (1.6.3) of the rotations package is available for download from CRAN. For Windows users, the current version (1.6.4) of rotations can be downloaded from GitHub. Mac users will need to download the repo, compile the C++ code and install.

Installation

remotes::install_github("stanfill/rotationsC", subdir = "rotations")

Example

This is a basic example which shows you how to solve a common problem:

library(rotations)
## basic example code

Change log

  • Dropped interactive option for plotting because sphere plot was going to be removed from CRAN

Copy Link

Version

Install

install.packages('rotations')

Monthly Downloads

656

Version

1.6.6

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Bryan Stanfill

Last Published

September 28th, 2025

Functions in rotations (1.6.6)

drill

Drill data set
fisher.kappa

Circular variance and concentration parameter
bayesCR

Bayes credible regions
center

Center rotation data
chang

M-estimator asymptotic confidence region
fisheretal

Transformation based pivotal bootstrap confidence region
cayley.kappa

Circular variance and concentration parameter
median

Median rotation
log.SO3

Rotation logarithm
head

Return the First or Last Parts of an Object
mis.angle

Misorientation angle
mean

Mean rotation
maxwell.kappa

Circular variance and concentration parameter
pointsXYZ

Project rotation data onto sphere
plot

Visualizing random rotations
rotdist.sum

Sample distance
rotations

A package for working with rotation data.
rot.dist

Rotational distance
gradient.search

Gradient optimization for rotation data
region

Confidence and credible regions for the central orientation
zhang

M-estimator theory pivotal bootstrap confidence region
genR

Generate rotations
prentice

Transformation based asymptotic confidence region
project.SO3

Projection into SO(3)
vmises.kappa

Circular variance and concentration parameter
weighted.mean

Weighted mean rotation
skew.exp

Matrix exponential
mis.axis

Misorientation axis
nickel

Nickel electron backscatter diffraction data set
tail

Return the First or Last Parts of an Object
Maxwell

The modified Maxwell-Boltzmann distribution
Mises

The circular-von Mises distribution
Angular-distributions

Angular distributions
Cayley

The symmetric Cayley distribution
Fisher

The matrix-Fisher distribution
Q4

`Q4` class for storing rotation data as quaternions
discord

Measure of Discord
MCMCSO3

MCMC for rotation data
Haar

Uniform distribution
Arithmetic

Arithmetic operators on SO(3)
bayes.mean

Parameter estimates based on non-informative Bayes
UARS

Generic UARS Distribution
SO3

`SO3` class for storing rotation data as rotation matrices