xyzmat2xyz: Convert (x, y, zmat) coordinates to (x, y, z) coordinates

Description Usage Arguments Details Value Examples

View source: R/squash.R

Description

Convert a matrix of Z coordinates into (x, y, z) triples.

Usage

1

Arguments

...

Arguments passed to xyzmat.coords

Details

The input is based on xyzmat.coords.

The output is as returned by xyz.coords

Value

A list; see xyz.coords.

Examples

1
2
3
4
  ## 
  str(volcano)
  volcano.xyz <- xyzmat2xyz(volcano)
  str(volcano.xyz)

Example output

 num [1:87, 1:61] 100 101 102 103 104 105 105 106 107 108 ...
List of 6
 $ x   : num [1:5307] 1 2 3 4 5 6 7 8 9 10 ...
 $ y   : num [1:5307] 1 1 1 1 1 1 1 1 1 1 ...
 $ z   : num [1:5307] 100 101 102 103 104 105 105 106 107 108 ...
 $ xlab: chr "Row index"
 $ ylab: chr "Column index"
 $ zlab: NULL

squash documentation built on Feb. 20, 2020, 9:08 a.m.