demo/diffMetrics.R

ref <- rast(system.file("external/reference.rst", package = "diffeR"))
comp <- rast(system.file("external/comparison.rst", package = "diffeR"))

# Crosstab matrix, total difference, quantity difference and allocation difference at the map level:
(ctmatCompRef <- crosstabm(comp, ref, percent = TRUE)) 

# 
diffTablej(ctmatCompRef)

# 
exchangeDij(ctmatCompRef)

# 
(diffMR <- differenceMR(comp, ref, eval = "original"))

#
overallComponentsPlot(comp, ref)
amsantac/diffeR documentation built on Oct. 14, 2023, 12:58 a.m.