Add centroids manually by picking X-ray counts of selected pixels in X-ray maps.
add_centers( centers, xmap, x = NULL, y = NULL, phase = if (is.null(x)) NULL else paste0("P", seq_along(x)), i = data.frame(x, y, phase), ..., saveas = "center_add.csv" )
| centers | c-by-p matrix returned by |
|---|---|
| xmap | An object generated by |
| x | A n-by-p training data matrix; n observations and p features. Used to train the classifier. |
| 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 | Selected ones are referenced to detect outliers. Default selects everything.
Tidy selection is available. For example |
| i | A data frame with clumns |
| ... | Ignored |
| saveas | File name to save result. |