Skip to contents

A 4x4 rotation matrix for displaying BANC connectome data in a frontal view. This matrix can be applied to any 3D neuroanatomy data to rotate it into a standard frontal viewing orientation. Provded as an example for the user.

Usage

banc_view

Format

A 4x4 numeric matrix representing a 3D rotation transformation.

Source

Derived from bancr:::banc_rotation_matrices[["front"]].

Details

Users can create their own custom rotation matrices interactively using the rgl_view() function after positioning neurons in their desired orientation with plot3d().

Examples

if (FALSE) { # \dontrun{
library(nat.ggplot)
library(nat)
library(ggplot2)

# Use the frontal view for plotting
ggplot() +
  geom_neuron(banc.skels, rotation_matrix = banc_view)

# Create a custom view interactively
plot3d(banc.brain_neuropil)
# Rotate to desired angle with mouse
my_view <- rgl_view()$userMatrix
# Use custom view
ggplot() +
  geom_neuron(banc.brain_neuropil, rotation_matrix = my_view)
} # }