Skip to content

Instantly share code, notes, and snippets.

@hypercompetent
Created May 21, 2019 14:59
Show Gist options
  • Save hypercompetent/e9d0eb80c64add3759418133678bbe68 to your computer and use it in GitHub Desktop.
Save hypercompetent/e9d0eb80c64add3759418133678bbe68 to your computer and use it in GitHub Desktop.
Use bg3d() to specify cocoframer background color
library(cocoframer)
library(purrr)
library(rgl)
structures <- c("root","CA")
mesh_list <- map(structures, ccf_2017_mesh)
names(mesh_list) <- structures
plot_ccf_meshes(mesh_list,
fg_structure = "CA",
bg_structure = "root")
bg3d(color = "black")
@hypercompetent
Copy link
Author

May also want to set bg_color = "white" in plot_ccf_meshes() to make the root structure stand out a bit more against the black background:

plot_ccf_meshes(mesh_list,
                fg_structure = "CA",
                bg_structure = "root",
                bg_color = "white")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment