ringWidths {measuRing} | R Documentation |
Ring widths
Description
This function can compute the ring widths (mm) from the ring borders detected on an image section.
Usage
ringWidths(image, last.yr = NULL, ...)
Arguments
image |
character or matrix. Either path of an image section or an array representing a gray matrix. |
last.yr |
year of formation of the newest ring. If NULL then the rings are numbered from one (right) to the number of detected rings (left). |
... |
arguments to be passed to two functions:
|
Value
data frame with the ring widths.
Author(s)
Wilson Lara, Carlos Sierra, Felipe Bravo
Examples
## (not run) Read one image section:
image1 <- system.file("P105_a.tif", package="measuRing")
## (not run) columns in gray matrix to be included/excluded:
Toinc <- c(196,202,387,1564)
Toexc <- c(21,130,197,207,1444,1484)
## (not run) tree-ring widths
rwidths <- ringWidths(image1,inclu = Toinc,exclu = Toexc,last.yr=NULL)
str(rwidths)
##plot of computed tree-ring widths:
maint <- 'Hello ring widths!'
plot(rwidths,type='l',col = 'red',main = maint,
xlab = 'Year',ylab = 'Width (mm)')
[Package measuRing version 0.5 Index]