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

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