Read Shapefile_TreeRings

ReadShapefile_TreeRings(
  filename = "Abies_277_h400_TreeRing_Representative.shp",
  ring.tag = "ring"
)

Arguments

filename

a file name(path) of shape file written to disk.

ring.tag

string, column name of ring years (0 is cambium layer)

Value

a list of tree ring lines

Examples

.dir <- system.file("shp",package = "TreeRingShape")
.file <- "Abies_277_h400_TreeRing_Representative.shp"
filename <- paste(.dir,.file,sep="/")
sf.L<-sf::st_read(filename)
#> Reading layer `Abies_277_h400_TreeRing_Representative' from data source 
#>   `/home/runner/work/_temp/Library/TreeRingShape/shp/Abies_277_h400_TreeRing_Representative.shp' 
#>   using driver `ESRI Shapefile'
#> Simple feature collection with 38 features and 1 field
#> Geometry type: LINESTRING
#> Dimension:     XY
#> Bounding box:  xmin: 891.2132 ymin: -18061.85 xmax: 19228.22 ymax: -528.6397
#> CRS:           NA
plot(sf.L)

Lplot(ReadShapefile_TreeRings(filename))