The raceland package implements a computational framework for a pattern-based, zoneless analysis, and visualization of (ethno)racial topography. It is a reimagined approach for analyzing residential segregation and racial diversity based on the concept of ‘landscape’ used in the domain of landscape ecology. A racial landscape, represented by a high-resolution raster grid with each cell containing only inhabitants of a single race, is quantified by two metrics (entropy and mutual information) derived from Information Theory concept (IT). Entropy is the measure of racial diversity and mutual information measures racial segregation.
Racial landscape method is based on the raster gridded data, and unlike the previous methods, does not depend on the division of specific zones (census tract, census block, etc.). Calculation of racial diversity (entropy) and racial segregation (mutual information) can be performed for the whole area of interests (i.e., metropolitan area) without introducing any arbitrary divisions. Racial landscape method also allows for performing calculations at different spatial scales.
You can install the released version of raceland from CRAN with:
You can install the development version from GitHub with:
# Calculate IT-metrics metr_df = calculate_metrics(x = real_raster, w = dens_raster, neighbourhood = 4, fun = "mean", size = NULL, threshold = 1) head(metr_df) #> realization row col ent joinent condent mutinf #> 1 1 1 1 1.633341 3.142363 1.509022 0.1243184 #> 2 2 1 1 1.637324 3.160367 1.523043 0.1142804 #> 3 3 1 1 1.634186 3.146756 1.512570 0.1216158 #> 4 4 1 1 1.629882 3.152127 1.522246 0.1076359 #> 5 5 1 1 1.638865 3.177159 1.538294 0.1005704 #> 6 6 1 1 1.635714 3.152158 1.516443 0.1192709
Contributions to this package are welcome. The preferred method of contribution is through a GitHub pull request. Feel free to contact us by creating an issue.