Package 'CoastlineFD'

Title: Calculation of the Fractal Dimension of a Coastline
Description: Calculating the fractal dimension of a coastline using the boxes and dividers methods.
Authors: Zhao Shiqi [aut, cre]
Maintainer: Zhao Shiqi <[email protected]>
License: MIT + file LICENSE
Version: 1.1.2
Built: 2025-03-06 04:49:03 UTC
Source: https://github.com/redworld123/coastlinefd

Help Index


BoxesFD

Description

Calculation of the fractal dimension of a coastline using the boxes methods

Usage

BoxesFD(BinputPath, netPath, outputPath, year, r, pearsonValue, writeF, showF)

Arguments

BinputPath

All origin coastline files path

netPath

All fishnet files path

outputPath

All results will be exported here

year

R vector object, which represent your study time

r

R vector object, which represent your study scale

pearsonValue

The Pearson coefficient of your input data

writeF

Exporting Function's result

showF

Drawing Function's result

Value

An .xlsx file containing the results of the coastline fractal dimension

Examples

BinputPath = list.files(system.file('extdata', package = 'CoastlineFD'),full.names = TRUE)[1]
netPath = list.files(system.file('extdata', package = 'CoastlineFD'),full.names = TRUE)[3]
outputPath = paste0(system.file('extdata', package = 'CoastlineFD'), "/FD1985_1986.xlsx")

BoxesFD(
  BinputPath,
  netPath,
  outputPath,
  c(1985:1986),
  c(300, 600, 900, 1000, 1050, 1100),
  0.00,
  FALSE,
  TRUE
)

DividersFD

Description

Calculation of the fractal dimension of a coastline using the dividers methods

Usage

DividersFD(DinputPath, outputPath, year, r, pearsonValue, writeF, showF)

Arguments

DinputPath

All density coastline files path

outputPath

All results will be exported here

year

R vector object, which represent your study time

r

R vector object, which represent your study scale

pearsonValue

The Pearson coefficient of your input data

writeF

Exporting Function's result

showF

Drawing Function's result

Value

An .xlsx file containing the results of the coastline fractal dimension

Examples

DinputPath = list.files(system.file('extdata', package = 'CoastlineFD'),full.names = TRUE)[2]
outputPath = paste0(system.file('extdata', package = 'CoastlineFD'), "/FD1985_1986.xlsx")

DividersFD(
  DinputPath,
  outputPath,
  c(1985:1986),
  c(300, 600, 900, 1000, 1050, 1100),
  0.00,
  FALSE,
  TRUE
)

FD

Description

Calculation of the fractal dimension of a coastline using both methods

Usage

FD(DinputPath, BinputPath, netPath, outputPath, year, r, pearsonValue, writeF, showF)

Arguments

DinputPath

All density coastline files path

BinputPath

All origin coastline files path

netPath

All fishnet files path

outputPath

All results will be exported here

year

R vector object, which represent your study time

r

R vector object, which represent your study scale

pearsonValue

The Pearson coefficient of your input data

writeF

Exporting Function's result

showF

Drawing Function's result

Value

An .xlsx file containing the results of the coastline fractal dimension

Examples

DinputPath = list.files(system.file('extdata', package = 'CoastlineFD'),full.names = TRUE)[2]
BinputPath = list.files(system.file('extdata', package = 'CoastlineFD'),full.names = TRUE)[1]
netPath = list.files(system.file('extdata', package = 'CoastlineFD'),full.names = TRUE)[3]
outputPath = paste0(system.file('extdata', package = 'CoastlineFD'), "/FD1985_1986.xlsx")

FD(
  DinputPath,
  BinputPath,
  netPath,
  outputPath,
  c(1985:1986),
  c(300, 600, 900, 1000, 1050, 1100),
  0.00,
  FALSE,
  TRUE
)