crossRings: dplR crossdating

Description Usage Arguments Value Author(s) Examples

Description

This function implements routines in dplR to crossdate TRWs.

Usage

1
2
crossRings(mdr, smp = 1, ncol = 1:length(mdr), fun = "corr", 
    ...)

Arguments

mdr

list. Set of detected TRWs such as that produced by multiDetect.

smp

numeric or character. Position or name in the set of the sample being crossdated.

ncol

numeric or character. Positions or names in the set of the TRWs used to crossdate the sample.

fun

character. Function in dplR to be implemented. Three functions can be used: corr.rwl.seg ('corr'), ccf.series.rwl ('ccf'), and spag.plot ('spag').

...

arguments to be passed to the dplR function.

Value

output of selected function.

Author(s)

Wilson Lara, Carlos Sierra, Felipe Bravo

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Paths to three image sections in the package:
img <- system.file(c("P105_a.tif",
                     "P105_b.tif",
                     "P105_d.tif"),
                   package="measuRing")

## Recursive detection:
mrings <- multiDetect(img,
                      last.yr = 2013,
                      auto.det = TRUE,
                      plot = FALSE)

## corr analysis
crossRings(mrings,
           fun = 'corr',
           seg.length = 10,
           bin.floor = 0,
           lag.max = 2,
           make.plot = FALSE)

Example output

Package 'measuRing' version 0.5
Type 'citation("measuRing")' for citing this R package in publications.
$spearman.rho
       1889.1898 1894.1903 1899.1908 1904.1913 1909.1918 1914.1923 1919.1928
P105_a        NA        NA        NA        NA        NA        NA        NA
P105_b        NA        NA        NA        NA        NA        NA        NA
P105_d        NA        NA        NA        NA        NA        NA        NA
       1924.1933 1929.1938  1934.1943  1939.1948  1944.1953   1949.1958
P105_a        NA        NA         NA         NA         NA          NA
P105_b        NA 0.1515152 0.01818182 -0.2121212 -0.1272727 -0.04242424
P105_d        NA 0.1515152 0.01818182 -0.2121212  0.1393939  0.43030303
       1954.1963  1959.1968  1964.1973  1969.1978  1974.1983  1979.1988
P105_a 0.7454545 -0.3575758 -0.2727273  0.4181818 0.32121212  0.1272727
P105_b 0.4303030 -0.2363636 -0.7659610 -0.2926884 0.07294867 -0.2127669
P105_d 0.7575758 -0.2363636 -0.3818182  0.2242424 0.51515152  0.2727273
       1984.1993 1989.1998 1994.2003   1999.2008   2004.2013
P105_a 0.4303030 0.2969697 0.1151515 -0.21212121 -0.26060606
P105_b 0.3890595 0.7212121 0.3212121  0.01219535  0.16363636
P105_d 0.6000000 0.4787879 0.2606061  0.06666667  0.01818182

$p.val
       1889.1898 1894.1903 1899.1908 1904.1913 1909.1918 1914.1923 1919.1928
P105_a        NA        NA        NA        NA        NA        NA        NA
P105_b        NA        NA        NA        NA        NA        NA        NA
P105_d        NA        NA        NA        NA        NA        NA        NA
       1924.1933 1929.1938 1934.1943 1939.1948 1944.1953 1949.1958   1954.1963
P105_a        NA        NA        NA        NA        NA        NA 0.009206921
P105_b        NA 0.3409038 0.4864206  0.731656 0.6463981 0.5541806 0.109014237
P105_d        NA 0.3409038 0.4864206  0.731656 0.3536019 0.1090142 0.007960415
       1959.1968 1964.1973 1969.1978  1974.1983 1979.1988  1984.1993  1989.1998
P105_a 0.8521980 0.7863202 0.1162090 0.18384200 0.3664434 0.10901424 0.20347511
P105_b 0.7542223 0.9951065 0.7940845 0.42063563 0.7224620 0.13323896 0.01209729
P105_d 0.7542223 0.8685566 0.2683440 0.06641153 0.2241361 0.03655994 0.08302902
       1994.2003 1999.2008 2004.2013
P105_a 0.3794165 0.7316560 0.7758639
P105_b 0.1838420 0.4866633 0.3283607
P105_d 0.2348376 0.4323768 0.4864206

$overall
                rho     p-val
P105_a -0.009793097 0.5303603
P105_b -0.017878310 0.5656573
P105_d  0.115359892 0.1422474

$avg.seg.rho
   1889.1898    1894.1903    1899.1908    1904.1913    1909.1918    1914.1923 
         NaN          NaN          NaN          NaN          NaN          NaN 
   1919.1928    1924.1933    1929.1938    1934.1943    1939.1948    1944.1953 
         NaN          NaN  0.151515152  0.018181818 -0.212121212  0.006060606 
   1949.1958    1954.1963    1959.1968    1964.1973    1969.1978    1974.1983 
 0.193939394  0.644444444 -0.276767677 -0.473502147  0.116578625  0.303104101 
   1979.1988    1984.1993    1989.1998    1994.2003    1999.2008    2004.2013 
 0.062411020  0.473120859  0.498989899  0.232323232 -0.044419732 -0.026262626 

$flags
                                                                                                                                                               P105_a 
                                                       "1959.1968, 1964.1973, 1969.1978, 1974.1983, 1979.1988, 1984.1993, 1989.1998, 1994.2003, 1999.2008, 2004.2013" 
                                                                                                                                                               P105_b 
"1929.1938, 1934.1943, 1939.1948, 1944.1953, 1949.1958, 1954.1963, 1959.1968, 1964.1973, 1969.1978, 1974.1983, 1979.1988, 1984.1993, 1994.2003, 1999.2008, 2004.2013" 
                                                                                                                                                               P105_d 
           "1929.1938, 1934.1943, 1939.1948, 1944.1953, 1949.1958, 1959.1968, 1964.1973, 1969.1978, 1974.1983, 1979.1988, 1989.1998, 1994.2003, 1999.2008, 2004.2013" 

$bins
      [,1] [,2]
 [1,] 1889 1898
 [2,] 1894 1903
 [3,] 1899 1908
 [4,] 1904 1913
 [5,] 1909 1918
 [6,] 1914 1923
 [7,] 1919 1928
 [8,] 1924 1933
 [9,] 1929 1938
[10,] 1934 1943
[11,] 1939 1948
[12,] 1944 1953
[13,] 1949 1958
[14,] 1954 1963
[15,] 1959 1968
[16,] 1964 1973
[17,] 1969 1978
[18,] 1974 1983
[19,] 1979 1988
[20,] 1984 1993
[21,] 1989 1998
[22,] 1994 2003
[23,] 1999 2008
[24,] 2004 2013

measuRing documentation built on May 2, 2019, 12:48 p.m.