Learn R Programming

mapi

MAPI is an exploratory method providing graphical representations of the spatial variation of pairwise metrics (eg. distance, similarity coefficient, ...) computed between georeferenced samples.

Installation

You can install the released version of mapi from CRAN with:

install.packages("mapi")

Example

This basic example illustrates MAPI usage based on internal data. This dataset have been generated by simulation. In real life, the crs 3857 is not accurate. Use a projection of coordinates in line with your sampling area. For demonstration purposes 100 permutations are faster but unreliable. For a true dataset 1000 to 10,000 permutations should be OK.

library(mapi)
data("samples")
data(metric)
mapi.out <- MAPI_RunAuto(samples, metric, crs=3857, beta=0.5, nbPermuts=100)
mapi.tails <- MAPI_Tails(mapi.out, alpha=0.05)
MAPI_Plot2(mapi.out, mapi.tails, samples=samples)

Copy Link

Version

Install

install.packages('mapi')

Monthly Downloads

257

Version

1.0.5

License

GPL (>= 3)

Maintainer

Last Published

January 19th, 2022

Functions in mapi (1.0.5)

MAPI_RunAuto

Function MAPI_RunAuto
MAPI_Tails

Function MAPI_Tails
MAPI_EstimateHalfwidth

Function MAPI_EstimateHalfwidth
MAPI_GridAuto

Function MAPI_GridAuto
mapi

MAPI, general presentation
MAPI_GridHexagonal

Function MAPI_GridHexagonal
MAPI_Plot

Function MAPI_Plot
MAPI_CheckData

Function MAPI_CheckData
metric

'metric' test dataset
samples

'samples' test dataset
MAPI_Plot2

Function MAPI_Plot2
MAPI_RunOnGrid

Function MAPI_RunOnGrid