vm_p_frac.Rd
This function allows you to calculate index fractal dimension index. The index is based on the patch perimeter and the patch area and describes the patch complexity.
vm_p_frac(landscape, class_col = NULL, patch_col = NULL)
the input landscape image,
the name of the class column of the input landscape
the name of the id column of the input landscape
the function returns tibble with the calculated values in column "value", this function returns also some important information such as level, class, patch id and metric name.
2 * log(perimeter) / log(area)
vm_p_frac(vector_patches, "class", "patch")
#> # A tibble: 40 × 5
#> level class id metric value
#> <chr> <chr> <chr> <chr> <dbl>
#> 1 patch 1 11 frac 2.09
#> 2 patch 1 12 frac 1.87
#> 3 patch 1 13 frac 2.12
#> 4 patch 1 14 frac 3.32
#> 5 patch 1 15 frac Inf
#> 6 patch 1 16 frac Inf
#> 7 patch 1 17 frac Inf
#> 8 patch 1 18 frac 2.57
#> 9 patch 1 19 frac Inf
#> 10 patch 1 20 frac Inf
#> # ℹ 30 more rows