Package: Irescale 2.3.0

Ivan Fuentes

Irescale: Calculate and Rectify Moran's I

Provides a scaling method to obtain a standardized Moran's I measure. Moran's I is a measure for the spatial autocorrelation of a data set, it gives a measure of similarity between data and its surrounding. The range of this value must be [-1,1], but this does not happen in practice. This package scale the Moran's I value and map it into the theoretical range of [-1,1]. Once the Moran's I value is rescaled, it facilitates the comparison between projects, for instance, a researcher can calculate Moran's I in a city in China, with a sample size of n1 and area of interest a1. Another researcher runs a similar experiment in a city in Mexico with different sample size, n2, and an area of interest a2. Due to the differences between the conditions, it is not possible to compare Moran's I in a straightforward way. In this version of the package, the spatial autocorrelation Moran's I is calculated as proposed in Chen(2013) <arxiv:1606.03658>.

Authors:Ivan Fuentes, Thomas DeWitt, Thomas Ioerger, Michael Bishop

Irescale_2.3.0.tar.gz
Irescale_2.3.0.zip(r-4.7)Irescale_2.3.0.zip(r-4.6)Irescale_2.3.0.zip(r-4.5)
Irescale_2.3.0.tgz(r-4.6-any)Irescale_2.3.0.tgz(r-4.5-any)
Irescale_2.3.0.tar.gz(r-4.7-any)Irescale_2.3.0.tar.gz(r-4.6-any)
Irescale_2.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
Irescale/json (API)

# Install 'Irescale' in R:
install.packages('Irescale', repos = c('https://cranhaven.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/cranhaven/cranhaven.r-universe.dev/issues

On CRAN:

Conda:

archivedpackagesr-universe

3.40 score 5 stars 3 scripts 197 downloads 34 exports 49 dependencies

Last updated from:3adf3d5749 (on package/Irescale). Checks:7 NOTE, 2 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64NOTE216
source / vignettesOK216
linux-release-x86_64NOTE158
macos-release-arm64NOTE94
macos-oldrel-arm64NOTE102
windows-develNOTE111
windows-releaseNOTE99
windows-oldrelNOTE107
wasm-releaseOK161

Exports:buildStabilityTablebuildStabilityTableForCorrelationcalculateDistMatrixFromBoardcalculateEuclideanDistancecalculateLocalIcalculateManhattanDistancecalculateMoranIcalculatePvaluecalculateWeightedDistMatrixconvexHullcoorexpectedValueIiCorrectionItoPearsonCorrelationloadChessBoardloadDistanceMatrixloadFileloadSatelliteImagelocalICorrectionnullDristributionplotHistogramOverlayCorrelationplotHistogramOverlayNormalprocrustesrectifyIrhoresamplingIresamplingLocalIrescaleIsaveFilestandardizestandardizedByColumnsummaryLocalIVectorsummaryVectortransformImageToListtransformImageToMatrix

Dependencies:bmpclassclicpp11digestdownloadere1071farverfBasicsggplot2gluegssgtableigraphimagerisobandjpeglabelinglatticelifecyclemagrittrMASSMatrixpkgconfigplyrpngproxypurrrR6rbibutilsRColorBrewerRcppRdpackreadbitmapreshape2rlangS7scalesspspatialstablediststringistringrtifftimeDatetimeSeriesvctrsviridisLitewithr

Moran's I rescaling

Rendered fromrectifiedI.Rmdusingknitr::rmarkdownon May 14 2026.

Last update: 2026-05-14
Started: 2026-05-14

Readme and manuals

Help Manual

Help pageTopics
Finds how many iterations are necessary to achieve stability in resampling method.buildStabilityTable
Finds how many iterations are necessary to achieve stability in resampling method for rectifying I through pearson corrrelation.buildStabilityTableForCorrelation
Calculates the distance in a chessboard-alike structure.calculateDistMatrixFromBoard
Given a 2D data structure, it calculates the euclidean distance among all the points.calculateEuclideanDistance
Computing the Local Moran's IcalculateLocalI
Calculates the manhattan distance.calculateManhattanDistance
Calculates the Moran's I using the algorithm proposed by Chen (Chen 2013).calculateMoranI
p-value calculation.calculatePvalue
Calculates a weighted representation of the distance matrix.calculateWeightedDistMatrix
Plots the convexhull polygon from the data (latitude, longitude), and calculates the center of the convexhull and its area.convexHull
Transforms a x,y position in a cartesian plane into a position in a 1D array.coor
Calculates the expected value for local IexpectedValueI
Scaling process for Moran's I.iCorrection
Calculate the equivalence r from the I percentile in the I-Null Distribution.ItoPearsonCorrelation
Loads a chessboard or matrix alike input file.loadChessBoard
Loads a distance matrix. Instead of computing the distance from latitute and longitude 'LoadDistanceMatrix' Loads the distance matrix, avoiding computing it from latitude and longitude.loadDistanceMatrix
Loads a file with latitude, longitude and variable of interestloadFile
Loads a Satellite image in PNG formatloadSatelliteImage
Scaling process for Local Moran's I.localICorrection
Calculate a distribution of how the var of interest is correlated to anullDristribution
Creates an overlay of the histogram of the data and the theorical normal distribution.plotHistogramOverlayCorrelation
Creates an overlay of the histogram of the data and the theorical normal distribution.plotHistogramOverlayNormal
Procrustes distance between two surfacesprocrustes
Rectify I using a correlation method for all the variables in an input file.rectifyIrho
Calculates n permutations of the variable of interest to calculate n different I in order to create the Null distribution.resamplingI
Calculates n permutations of the variable of interest to calculate n different I in order to create the Null distribution.resamplingLocalI
Performs the rescale for all the variables in an input file.rescaleI
Saves a report with important statistics to describe the sample.saveFile
Standardize the input vectorstandardize
Scales a matrix by column.standardizedByColumn
Calculates statistic for the received Matrix.summaryLocalIVector
Calculates statistic for the received vector.summaryVector
Transforms the image in the object need it to run the analysis.transformImageToList
Transforms the image to a matrix.transformImageToMatrix