brain_join: Join atlas and data

Description Usage Arguments Value Examples

View source: R/brain_join.R

Description

Joins data frame with a brain-atlas object.

Usage

1
brain_join(data, atlas, by = NULL)

Arguments

data

data.frame

atlas

atlas data

by

optional character vector of column to join by

Value

either an sf-object or a tibble with merged atlas and data

Examples

1
2
3
4
5
6
7
8
someData = data.frame(
    region = c("transverse temporal", "insula",
                "precentral","superior parietal"),
    p = sample(seq(0,.5,.001), 4),
    stringsAsFactors = FALSE)

brain_join(someData, dk)
brain_join(someData, dk, "region")

neuroconductor/ggseg documentation built on May 15, 2021, 11:21 p.m.