A value for fractal dimension, typically between 1 and 2 or a list if keep_data = TRUE.
Arguments
data
A data frame in which the first two columns are x and y coordinates, respectively.
lvec
The scales to use for calculation (i.e. box sizes).
keep_data
Logical. Keep calculation data? Default = TRUE.
plot
Logical. Plot the shape with box sizes superimposed? Defaults to FALSE.
Details
This function calculates fractal dimension using the box counting method.
If lvec is not specified, a default based on resolution and extent will be used.
Based on lvec, boxes of different sizes are defined and the function counts boxes that capture the outline of the shape.
It is recommended to specify the maximum value of lvec so that the largest
box encapsulates the entire object. The smallest scale included in lvec
should not be smaller than the resolution of your object.