library(compactness)
## Load test data
shp = "data/20110727_q2_congressional_final_draft.shp" # California 2011 Congressional district maps
namecol = "DISTRICT"
shp = read_shapefiles(shp, namecol)
units::units_options(allow_mixed=T)
## Alternate test data
## shp = "CnclDist_July2012.shp" # LA City Council districts
## shp = read_shapefiles(shp, "DISTRICT")
# Generate features
features = generate_features(shp)
# Generate predictions and SEs
predictions = generate_predictions(features, namecol)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.