project3dMap: Project channel positions onto 2D plane

Description Usage Arguments Value

View source: R/chan_pos.R

Description

project3dMap projects 3D coordinates onto a 2D plane or vice versa

Usage

1
2
3
4
5
6
7
8
9
project3dMap(
  pos,
  r = 1,
  projection = "laea",
  projref = c("pole", "equator"),
  origo = c(lat = ifelse(projref == "pole", 90, 0), long = ifelse(projref == "pole",
    270, 0)),
  inverse = FALSE
)

Arguments

pos

electrode positions (matrix or data.frame)

r

radius

projection

character string (default = "laea"). See http://www.remotesensing.org/geotiff/proj_list/ for common projections

projref

projection reference (pole [ = default] or equator)

origo

a named character vector of lat ( = latitude) and long (longitude)

inverse

if set to TRUE, back-projection is performed (default = FALSE)

Value

A data.frame containing the projected coordinates


tdeenes/eegR documentation built on April 19, 2021, 4:17 p.m.