pick: Pick values from mapping data

Description Usage Arguments Value See Also

View source: R/pick.R

Description

Pick values from mapping data based on coordinates of x and y.

Usage

1
2
3
4
5
6
7
8
pick(
  .df,
  x = NULL,
  y = NULL,
  phase = if (is.null(x)) NULL else paste0("P", seq_along(x)),
  i = data.frame(x, y, phase),
  ...
)

Arguments

.df

Mapping data. Currentl version only supports qm_xmap object.

x, y

Integer vectors specifying x- and y-coordinates of pixels of mapping data. In other words, x- and y- corresponds to n-th column and row of a matrix.

phase

Name of phases comprising the pixels to be picked. If not manually supplied phase is supplied by c('P1', 'P2', ...).

i

A data frame with clumns x, y, and phase. i have priority to x, y, and phase.'

...

Ignored

Value

data.frame

See Also

add_centers()


atusy/qntmap documentation built on Dec. 3, 2019, 12:11 p.m.