vignettes/parameterize.Rmd
parameterize.RmdThis document introduces a way to quantify X-ray maps without quantitatively analyzed spots by inheriting parameters from a previously quantified X-ray map (See figure below).

qntmap 0.3.2 or laterquantify(saving = TRUE) under qntmap 0.3.2 or later.xmap <- read_xmap(".map/2 for example")Suppose available quantified maps are constructed by following “Get started”, centers_initial0.csv is available as well. Read the csv file by following codes.
centers <- read.csv("example/centers_initial0.csv")
centers| phase | Si | Mg |
|---|---|---|
| Ol | 4263.8 | 5722.45 |
| Qtz | 10002.0 | 0.00 |
The above is a example format of initial centers given by sample data introduced in “Get started”. Edit the csv file manually if initial centers require modifications, or if there are any phase abscent in new maps to be quantified.
cluster <- cluster_xmap(xmap, centers)When available quantified mapes are compsoed by quantify() function, parameters.csv is saved in the qntmap directory within the directory storing X-ray mapping data. Specify a file path of parameters.csv as fix parameter of quantify() function.
quantify(xmap = xmap, qnt = NULL, cluster = cluster, fix = "example/qntmap/parameters.csv")Note that qnt paramter is ignored when fix parameter is specified.