# NOT RUN {
# Load data
fsbrain::download_optional_data();
subjects_dir = fsbrain::get_optional_data_filepath("subjects_dir");
brain = subject.volume(subjects_dir, 'subject1', 'brain') / 255;
# Show a lightbox along the third axis. Note that the orientation in the
# visualization is not very intuitive: the brain lies on the side.
volvis.lightbox(brain, axis=3);
# Rotate the whole brain volume by 90 degrees clockwise along
# the third axis to fix the orientation:
volvis.lightbox(rotate3D(brain, axis=3, degrees = 90), axis=3);
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab