Learn R Programming

geostats (version 1.6)

fractaldim: calculate the fractal dimension

Description

Performs box counting on a matrix of 0s and 1s.

Usage

fractaldim(mat, plot = TRUE, ...)

Value

an object of class lm

Arguments

mat

a square matrix of 0s and 1s. Size must be a power of 2.

plot

logical. If TRUE, plots the results on a log-log scale.

...

optional arguments to the generic points function.

Examples

Run this code
g <- sierpinski(n=5)
fractaldim(g)

Run the code above in your browser using DataLab