Skip to content

bankssts not plotted #121

Description

@vnckppl

In version 2.0.0, the bankssts label is not being plotted. Here is a miminal example to replicate this issue:

library(ggseg)
library(ggplot2)
library(dplyr)

some_data <- tibble(
  region = rep(
    c(
      "bankssts",
      "transverse temporal",
      "insula",
      "precentral",
      "superior parietal"
    ),
    2
  ),
  p = sample(seq(0, .5, .001), 10),
  groups = c(rep("g1", 5), rep("g2", 5))
)

ggplot(some_data) +
  geom_brain(
    atlas = dk(),
    position = position_brain(hemi ~ view),
    aes(fill = p)
  ) +
  facet_wrap(~groups) +
  scale_fill_viridis_c(option = "cividis", direction = -1) +
  theme_void()

This returns:

Merging atlas and data by region.
Warning messages:
1: Some data not merged properly.
ℹ Check for naming errors in data:
  groups label view hemi region lobe geometry atlas type colour p <chr> <chr> <chr> <chr> <chr> <chr> <MULTIPOLYGON> <chr> <chr> <chr>
  <dbl> 1 g1 <NA> <NA> <NA> bankssts <NA> EMPTY <NA> <NA> <NA> 0.046 2 g2 <NA> <NA> <NA> bankssts <NA> EMPTY <NA> <NA> <NA> 0.224 
2: Some data not merged. Check for spelling mistakes in: # A tibble: 2 × 3 # Groups: groups [2] groups region p * <chr> <chr> <dbl> 1 g1
bankssts 0.046 2 g2 bankssts 0.224 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions