Skip to contents

A pre-configured ggplot2 template with a minimal theme optimised for neuroanatomy visualisations. This object provides a clean base with no axes, grids, or extraneous elements, allowing the focus to remain on the neuroanatomical structures. Plot background is transparent (which is really annoying to do with an rgl plot, via with rgl.postscript)

Usage

gganat

Format

A ggplot2 object with:

coord_fixed()

Maintains aspect ratio for accurate morphology

theme_void()

Removes standard plot elements

No legends

Guides for fill and colour are hidden

No axes

All axis elements removed

No grids

Panel grids removed

Zero margins

Plot margins set to 0

Transparent background

Panel and plot backgrounds are transparent

Details

Use gganat as the base for neuroanatomy plots instead of ggplot(). Simply add your geom_neuron() layers to this base object.

See also

Examples

if (FALSE) { # \dontrun{
gganat + nat.ggplot::geom_neuron(banc.skels, rotation_matrix = banc_view)
} # }