main
) and calculate the distance from margin. Useful for locating high-resolution LA-ICP-MS or SIMS sample spots in samples with non-linear growth bands.
spot.dist(rawDist, sample.name = NULL, run.ae = TRUE, use.centroids = TRUE)
rawDist
object for which the alignment should be done.NULL
(default), the sample name will be passed from the previous steps (read.ijdata
, convert.ijdata
)spotDist
containing information of the aligned sample spots and the digitized representation of the shell cross-section, which was already included in the rawDist
object.
output
and can be extracted to a data.frame. Otherwise the object behaves like any list in R. Relevant data can be subsetted as needed. Detailed data containing information of the alignment process is stored in a sublist called det.dat
.The function can either project growth lines on the distance (main) axis or use the crossing points between growth lines and the main axis. These two types of the main axis can be used for different applications. The main axis type is automatically selected by the following criteria:
These criteria are set due to the need of defining a location for each marked growth line along the distance (main) axis. The choice is rigid, to simplify calculations, and to avoid bias in results by allowing two different methods for growth line locations. The easiest way to test which type
suits a particular sample best is to save two sets of ImageJ zip files by moving the measurement axis.
read.ijdata
for reading zip files containing ImageJ ROIs.order.ijdata
for ordering and subsetting read.ijdata
output.
convert.ijdata
for converting the coordinate information to spatstat point patterns.
plot.spotDist
for plotting.
print.spotDist
for printing.
data(shellspots)
shell_map <- convert.ijdata(shellspots)
x <- spot.dist(shell_map)
plot(x)
Run the code above in your browser using DataLab