core <- data.frame(
hemi = c("left", "left"),
region = c("region1", "region2"),
label = c("lh_region1", "lh_region2")
)
vertices <- data.frame(
label = c("lh_region1", "lh_region2"),
vertices = I(list(c(1L, 2L, 3L), c(4L, 5L, 6L)))
)
atlas <- ggseg_atlas(
atlas = "test",
type = "cortical",
core = core,
data = ggseg_data_cortical(vertices = vertices)
)
Run the code above in your browser using DataLab