Description Usage Arguments Value Examples
View source: R/exposure_isolation_matrix.R
Convert global exposure and isolation to tabular form
1 | exposure_isolation_matrix(segregation_results)
|
segregation_results |
a SEGREG object containing the results of a call to measure_segregation(). |
a data.frame with global exposure and isolation results in tabular form
1 2 3 4 5 6 7 8 9 10 11 12 | library("sf")
library("ggplot2")
library("segregr")
# load sample data from package segregr
marilia_sf <- st_read(system.file("extdata/marilia_2010.gpkg", package = "segregr"))
# calculate segregation metrics
segregation <- measure_segregation(marilia_sf)
# convert to tabular form
exposure_isolation_matrix(segregation)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.