You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using ggseg3d but I would like to remove from the 3D plot some specific regions, like Cerebellum, Brain-Stem, Ventricle...
How can I do that? I don't want to color these regions differently, but remove them completely from the plot.
The text was updated successfully, but these errors were encountered:
I actually though I had made an entry on this in the vignettes, so I'll make sure to add one in the next realease.
library(ggseg3d)
library(dplyr)
library(tidyr)
# vector of labelslabs<- c("Left-Lateral-Ventricle",
"Left-Inf-Lat-Vent",
"Left-Cerebellum-Cortex",
"Left-Pallidum ")
aseg_filt<-aseg_3d|>
unnest(ggseg_3d) |>
filter(
# Of you 'dont want the ones in the vector!label%in%labs
) |>
as_ggseg3d_atlas()
ggseg3d(atlas=aseg_filt)
aseg_filt_rev<-aseg_3d|>
unnest(ggseg_3d) |>
filter(
# Of you 'dont want the ones in the vectorlabel%in%labs
) |>
as_ggseg3d_atlas()
ggseg3d(atlas=aseg_filt_rev)
Hello,
I'm using ggseg3d but I would like to remove from the 3D plot some specific regions, like Cerebellum, Brain-Stem, Ventricle...
How can I do that? I don't want to color these regions differently, but remove them completely from the plot.
The text was updated successfully, but these errors were encountered: