Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding sensor locations around brain #23

Open
ryssamoffat opened this issue Jan 24, 2025 · 2 comments
Open

Adding sensor locations around brain #23

ryssamoffat opened this issue Jan 24, 2025 · 2 comments

Comments

@ryssamoffat
Copy link

I've just discovered the awesome set of ggseg packages. They are AWESOME!!!

Is there a way to plot sensor locations using coordinates around the brain? Perhaps a vignette exists?

I'm picturing taking a basic grey inflated brain and add dots nearby. 🙏

# basic brain
someData <- dk_3d %>% 
  filter(surf == "inflated" & hemi == "right") %>% 
  unnest(ggseg_3d) %>% 
  ungroup() %>% 
  select(region) %>% 
  na.omit() %>% 
  mutate(p = "grey")

ggseg3d(.data = someData, 
        atlas = dk_3d,
        colour = "p", text = "p") %>% 
  pan_camera("right medial")

# add dots
example_dot <- c(50, 22, 16) # x, y, z coordinates
@drmowinckels
Copy link
Contributor

@ryssamoffat
Copy link
Author

Thanks! All sorted 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants