Description Usage Arguments Value
This package contains several functions which require a data.frame of the
exact channel positions (e.g., plot2dview
,
chanNb
). To facilitate the transformation between various
coordinate systems, sph2cart
, sph2geo
, cart2sph
,
cart2geo
, geo2sph
, geo2cart
transform spherical (sph),
cartesian (cart), or geographical (geo) coordinates into the respective
coordinate system.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
ch_pos |
a data frame or matrix containing the spherical, cartesian,
or geographical coordinates of the electrode positions. It should contain
at least the following (named) columns, respectively: theta and phi;
x, y, and z; or lat and long. The rownames attribute of |
r |
radius (default = 1) |
deg |
logical variable indicating whether spherical or geographical coordinates are or should be given in degrees (TRUE, default) |
long360 |
logical variable; if TRUE (default), longitudes range from 0 to 360 (otherwise from -180 to 180) |
orient |
a character value specifying the orientation in the geographical coordinate system; "northpole" (default) or "equatorial" |
A data.frame with converted coordinates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.