{
  "_id": "6a1fe672b401979e7343c4d6",
  "Package": "mlspatial",
  "Title": "Machine Learning and Mapping for Spatial Epidemiology",
  "Version": "0.1.1",
  "Authors@R": "c(\nperson(\"Adeboye\", \"Azeez\", , \"azizadeboye@gmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"Colin\", \"Noel\", role = \"aut\")\n)",
  "Description": "Provides tools for the integration, visualisation, and\nmodelling of spatial epidemiological data using the method\ndescribed in Azeez, A., & Noel, C. (2025). 'Predictive\nModelling and Spatial Distribution of Pancreatic Cancer in\nAfrica Using Machine Learning-Based Spatial Model'\n<doi:10.5281/zenodo.16529986> and\n<doi:10.5281/zenodo.16529016>. It facilitates the analysis of\ngeographic health data by combining modern spatial mapping\ntools with advanced machine learning (ML) algorithms.\n'mlspatial' enables users to import and pre-process shapefile\nand associated demographic or disease incidence data, generate\nrichly annotated thematic maps, and apply predictive models,\nincluding Random Forest, 'XGBoost', and Support Vector\nRegression, to identify spatial patterns and risk factors. It\nis suited for spatial epidemiologists, public health\nresearchers, and GIS analysts aiming to uncover hidden\ngeographic patterns in health-related outcomes and inform\nevidence-based interventions.",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Config/testthat/edition": "3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-03 08:25:14 UTC",
    "User": "root"
  },
  "Author": "Adeboye Azeez [aut, cre], Colin Noel [aut]",
  "Maintainer": "Adeboye Azeez <azizadeboye@gmail.com>",
  "Config/pak/sysreqs": "libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev\nmake libicu-dev libpng-dev libuv1-dev libxml2-dev libssl-dev\nlibproj-dev libsqlite3-dev libudunits2-dev zlib1g-dev",
  "Repository": "https://azizadeboye.r-universe.dev",
  "Date/Publication": "2026-03-30 06:33:46 UTC",
  "RemoteUrl": "https://github.com/azizadeboye/mlspatial",
  "RemoteRef": "HEAD",
  "RemoteSha": "28b84a17ce6170ae7360bc8e757d944aafcb0446",
  "MD5sum": "3bc3721d172ed15e8e1d8eacc3145533",
  "_user": "azizadeboye",
  "_type": "src",
  "_file": "mlspatial_0.1.1.tar.gz",
  "_fileid": "d7520f46920bc4a1783eb94a3f34682b7beaee5e7cda91b0efa5bdb4103ef163",
  "_filesize": 3456342,
  "_sha256": "d7520f46920bc4a1783eb94a3f34682b7beaee5e7cda91b0efa5bdb4103ef163",
  "_created": "2026-06-03T08:25:14.000Z",
  "_published": "2026-06-03T08:31:46.305Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79252500838,
      "time": 330,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7379520578"
    },
    {
      "job": 79252500978,
      "time": 314,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7379514520"
    },
    {
      "job": 79252500920,
      "time": 281,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7379495010"
    },
    {
      "job": 79252500870,
      "time": 249,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7379484138"
    },
    {
      "job": 79251622653,
      "time": 316,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7379404589"
    },
    {
      "job": 79252500986,
      "time": 177,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7379465982"
    },
    {
      "job": 79252500807,
      "time": 289,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7379505784"
    },
    {
      "job": 79252500904,
      "time": 268,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7379499105"
    },
    {
      "job": 79252500847,
      "time": 274,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7379500055"
    }
  ],
  "_buildurl": "https://github.com/r-universe/azizadeboye/actions/runs/26872626756",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/azizadeboye/mlspatial",
  "_commit": {
    "id": "28b84a17ce6170ae7360bc8e757d944aafcb0446",
    "author": "Adeboye Azeez <54674659+azizadeboye@users.noreply.github.com>",
    "committer": "Adeboye Azeez <54674659+azizadeboye@users.noreply.github.com>",
    "message": "Create paper.md\n",
    "time": 1774852426
  },
  "_maintainer": {
    "name": "Adeboye Azeez",
    "email": "azizadeboye@gmail.com",
    "login": "azizadeboye",
    "twitter": "@azizadeboye",
    "description": "",
    "uuid": 54674659
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1",
      "role": "Depends"
    },
    {
      "package": "sf",
      "role": "Imports"
    },
    {
      "package": "readxl",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "randomForest",
      "role": "Imports"
    },
    {
      "package": "xgboost",
      "role": "Imports"
    },
    {
      "package": "e1071",
      "role": "Imports"
    },
    {
      "package": "caret",
      "role": "Imports"
    },
    {
      "package": "tmap",
      "role": "Imports"
    },
    {
      "package": "spdep",
      "role": "Imports"
    },
    {
      "package": "ggpubr",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    },
    {
      "package": "kernlab",
      "role": "Suggests"
    },
    {
      "package": "writexl",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "azizadeboye",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-13",
      "n": 7
    },
    {
      "week": "2026-14",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "azizadeboye",
      "count": 8,
      "uuid": 54674659
    }
  ],
  "_userbio": {
    "uuid": 54674659,
    "type": "user",
    "name": "Adeboye Azeez"
  },
  "_downloads": {
    "count": 131,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mlspatial"
  },
  "_devurl": "https://github.com/azizadeboye/mlspatial",
  "_searchresults": 0,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/mlspatial.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/azizadeboye/mlspatial",
  "_realowner": "azizadeboye",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2025-08-26"
    },
    {
      "version": "0.1.1",
      "date": "2026-01-08"
    }
  ],
  "_exports": [
    "compute_spatial_autocorr",
    "eval_model",
    "join_data",
    "load_incidence_data",
    "load_shapefile",
    "plot_map_grid",
    "plot_obs_vs_pred",
    "plot_single_map",
    "train_rf",
    "train_svr",
    "train_xgb"
  ],
  "_datasets": [
    {
      "name": "africa_shp",
      "title": "Africa shapefile data",
      "object": "africa_shp",
      "class": [
        "sf",
        "data.frame"
      ],
      "fields": [
        "OBJECTID",
        "FIPS_CNTRY",
        "ISO_2DIGIT",
        "ISO_3DIGIT",
        "NAME",
        "COUNTRYAFF",
        "CONTINENT",
        "TOTPOP",
        "geometry"
      ],
      "rows": 54,
      "table": false,
      "tojson": true
    },
    {
      "name": "africa_shps",
      "title": "Africa shapefile data 2",
      "object": "africa_shps",
      "class": [
        "SpatialPolygonsDataFrame"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "panc_incidence",
      "title": "Pancreatic Cancer Incidence Data",
      "object": "panc_incidence",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "NAME",
        "incidence",
        "female",
        "male",
        "ageb",
        "agec",
        "agea",
        "fageb",
        "fagec",
        "fagea",
        "mageb",
        "magec",
        "magea",
        "yra",
        "yrb",
        "yrc",
        "yrd",
        "yre"
      ],
      "rows": 54,
      "table": true,
      "tojson": true
    },
    {
      "name": "panc_prevalence",
      "title": "Pancreatic Cancer Prevalence Data",
      "object": "panc_prevalence",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "NAME",
        "prevalence",
        "female",
        "male",
        "ageb",
        "agec",
        "agea",
        "fageb",
        "fagec",
        "fagea",
        "mageb",
        "magec",
        "magea",
        "yra",
        "yrb",
        "yrc",
        "yrd",
        "yre"
      ],
      "rows": 54,
      "table": true,
      "tojson": true
    },
    {
      "name": "pancre_mort",
      "title": "Pancreatic Cancer Mortality Data",
      "object": "pancre_mort",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "NAME",
        "mortality",
        "female",
        "male",
        "ageb",
        "agec",
        "agea",
        "fageb",
        "fagec",
        "fagea",
        "mageb",
        "magec",
        "magea",
        "yra",
        "yrb",
        "yrc",
        "yrd",
        "yre"
      ],
      "rows": 54,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "africa_shp",
      "title": "Africa shapefile data",
      "topics": [
        "africa_shp"
      ]
    },
    {
      "page": "africa_shps",
      "title": "Africa shapefile data 2",
      "topics": [
        "africa_shps"
      ]
    },
    {
      "page": "compute_spatial_autocorr",
      "title": "Compute Moran's I & LISA, classify clusters",
      "topics": [
        "compute_spatial_autocorr"
      ]
    },
    {
      "page": "eval_model",
      "title": "Get RMSE/MAE/R² metrics on training data",
      "topics": [
        "eval_model"
      ]
    },
    {
      "page": "global_variables_eval",
      "title": "Declare known global variables to suppress R CMD check NOTE Global variables used in evaluation functions",
      "topics": [
        "global_variables_eval"
      ]
    },
    {
      "page": "join_data",
      "title": "Join spatial and incidence datasets",
      "topics": [
        "join_data"
      ]
    },
    {
      "page": "load_incidence_data",
      "title": "Load incidence data from Excel",
      "topics": [
        "load_incidence_data"
      ]
    },
    {
      "page": "load_shapefile",
      "title": "Load shapefile as sf + optionally convert to sp",
      "topics": [
        "load_shapefile"
      ]
    },
    {
      "page": "model_evaluation_examples",
      "title": "Examples for model evaluation functions",
      "topics": [
        "model_evaluation_examples"
      ]
    },
    {
      "page": "panc_incidence",
      "title": "Pancreatic Cancer Incidence Data",
      "topics": [
        "panc_incidence"
      ]
    },
    {
      "page": "panc_prevalence",
      "title": "Pancreatic Cancer Prevalence Data",
      "topics": [
        "panc_prevalence"
      ]
    },
    {
      "page": "pancre_mort",
      "title": "Pancreatic Cancer Mortality Data",
      "topics": [
        "pancre_mort"
      ]
    },
    {
      "page": "plot_map_grid",
      "title": "Arrange Multiple tmap Plots in a Grid",
      "topics": [
        "plot_map_grid"
      ]
    },
    {
      "page": "plot_obs_vs_pred",
      "title": "Plot observed vs predicted values with correlation",
      "topics": [
        "plot_obs_vs_pred"
      ]
    },
    {
      "page": "plot_single_map",
      "title": "Build a tmap for a single variable",
      "topics": [
        "plot_single_map"
      ]
    },
    {
      "page": "train_rf",
      "title": "Train Random Forest model",
      "topics": [
        "train_rf"
      ]
    },
    {
      "page": "train_svr",
      "title": "Train Support Vector Regression (SVR) model",
      "topics": [
        "train_svr"
      ]
    },
    {
      "page": "train_xgb",
      "title": "Train XGBoost model",
      "topics": [
        "train_xgb"
      ]
    }
  ],
  "_readme": "https://github.com/azizadeboye/mlspatial/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "base64enc",
    "boot",
    "broom",
    "bslib",
    "cachem",
    "car",
    "carData",
    "caret",
    "cellranger",
    "class",
    "classInt",
    "cli",
    "clock",
    "codetools",
    "colorspace",
    "cols4all",
    "corrplot",
    "cowplot",
    "cpp11",
    "crayon",
    "crosstalk",
    "curl",
    "data.table",
    "DBI",
    "deldir",
    "Deriv",
    "diagram",
    "digest",
    "doBy",
    "dplyr",
    "e1071",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "foreach",
    "forecast",
    "Formula",
    "fracdiff",
    "fs",
    "future",
    "future.apply",
    "generics",
    "geojsonsf",
    "geometries",
    "ggplot2",
    "ggpubr",
    "ggrepel",
    "ggsci",
    "ggsignif",
    "globals",
    "glue",
    "gower",
    "gridExtra",
    "gtable",
    "hardhat",
    "highr",
    "hms",
    "htmltools",
    "htmlwidgets",
    "httpuv",
    "ipred",
    "isoband",
    "iterators",
    "jquerylib",
    "jsonify",
    "jsonlite",
    "KernSmooth",
    "knitr",
    "labeling",
    "later",
    "lattice",
    "lava",
    "lazyeval",
    "leafem",
    "leafgl",
    "leaflegend",
    "leaflet",
    "leaflet.providers",
    "leafsync",
    "lifecycle",
    "listenv",
    "lme4",
    "lmtest",
    "logger",
    "lubridate",
    "lwgeom",
    "magrittr",
    "maptiles",
    "MASS",
    "Matrix",
    "MatrixModels",
    "memoise",
    "mgcv",
    "microbenchmark",
    "mime",
    "minqa",
    "ModelMetrics",
    "modelr",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "otel",
    "parallelly",
    "pbkrtest",
    "pillar",
    "pkgconfig",
    "plyr",
    "png",
    "polynom",
    "prettyunits",
    "pROC",
    "prodlim",
    "progress",
    "progressr",
    "promises",
    "proxy",
    "purrr",
    "quantreg",
    "R6",
    "randomForest",
    "rapidjsonr",
    "rappdirs",
    "raster",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "readxl",
    "recipes",
    "reformulas",
    "rematch",
    "reshape2",
    "rlang",
    "rmarkdown",
    "rpart",
    "rstatix",
    "s2",
    "S7",
    "sass",
    "scales",
    "servr",
    "sf",
    "sfheaders",
    "shape",
    "sp",
    "spacesXYZ",
    "SparseM",
    "sparsevctrs",
    "spData",
    "spdep",
    "SQUAREM",
    "stars",
    "stringdist",
    "stringi",
    "stringr",
    "survival",
    "terra",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "timeDate",
    "tinytex",
    "tmap",
    "tmaptools",
    "tzdb",
    "units",
    "urca",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "wk",
    "xfun",
    "xgboost",
    "XML",
    "yaml",
    "yyjsonr",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "mlspatial.Rmd",
      "filename": "mlspatial.html",
      "title": "mlspatial:Spatial Machine Learning workflow",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Environment Setup",
        "Data Loading and Spatial Integration",
        "Loading Spatial Data:",
        "Exploratory Mapping:",
        "Data Integration:",
        "Thematic Mapping of Disease Incidence",
        "Quantile Mapping:",
        "Multiple Indicators:",
        "Interpretation",
        "Machine Learning Modelling",
        "Model Training:",
        "Prediction:",
        "Model Comparison:",
        "Model Evaluation",
        "Performance Metrics:",
        "Cross-Validation:",
        "Model Prediction Visualisation",
        "Prediction Trends Across Observations",
        "Reshaping Predictions:",
        "Trend Visualisation:",
        "Observed vs Predicted Comparison",
        "Observed vs Predicted with Correlation",
        "Cross-Validation of Predictive Models",
        "Step 1: Setup",
        "Step 2: Random Forest Cross-Validation",
        "Step 3: XGBoost Cross-Validation",
        "Step 4: Support Vector Regression (SVR) Cross-Validation",
        "Spatial Maps of Model Predictions",
        "Step 1: Join Shapefiles and Incidence Data",
        "Step 2: Add Predicted Values",
        "Step 3: Visualize Individual Model Maps",
        "Step 4: Compare Models Side by Side",
        "Residual Analysis",
        "Step 1: Compute Residuals",
        "Step 2: Compare Residual Distributions",
        "Step 3: Map Residuals Spatially",
        "Spatial Visualization of Model Residuals",
        "Step 1: Add residuals to the spatial data",
        "Step 2: Set static plotting mode",
        "Step 3: Create individual residual maps",
        "Step 4: Combine residual maps in a grid",
        "Barplot and Spatial maps for RMSE and MAE",
        "Step 1: Compute evaluation metrics",
        "Step 2: Barplots of RMSE, MAE, and R²",
        "Step 3: Annotate residual maps with performance metrics",
        "Spatial Autocorrelation Analysis",
        "Global Spatial Autocorrelation:"
      ],
      "created": "2026-03-26 11:52:41",
      "modified": "2026-03-27 09:23:35",
      "commits": 2
    }
  ],
  "_score": 4,
  "_indexed": true,
  "_nocasepkg": "mlspatial",
  "_universes": [
    "azizadeboye"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-06-03T08:28:36.000Z",
      "distro": "noble",
      "commit": "28b84a17ce6170ae7360bc8e757d944aafcb0446",
      "fileid": "12b9e2def196e01bc4697bd6f9757ff8cc6cb992a0c52142ddf0856b2b4a4345",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/azizadeboye/actions/runs/26872626756"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-06-03T08:28:40.000Z",
      "distro": "noble",
      "commit": "28b84a17ce6170ae7360bc8e757d944aafcb0446",
      "fileid": "f67bc9beea02397a8d16a46726a315a68ed7485d5f2a316a5f0c91988e8fbc84",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/azizadeboye/actions/runs/26872626756"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-06-03T08:28:15.000Z",
      "commit": "28b84a17ce6170ae7360bc8e757d944aafcb0446",
      "fileid": "8ac7e026776903e4c3c0f558a6ffb588bf8c9af4c24def80617bc6d5817f8ea4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/azizadeboye/actions/runs/26872626756"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-06-03T08:27:56.000Z",
      "commit": "28b84a17ce6170ae7360bc8e757d944aafcb0446",
      "fileid": "84128eb319fb0789dbe2c21d4f1ed0b17351c466f89566633ad660068b21bd7a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/azizadeboye/actions/runs/26872626756"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-06-03T08:28:48.000Z",
      "commit": "28b84a17ce6170ae7360bc8e757d944aafcb0446",
      "fileid": "6ec44f2ffda90257154a7c7e970a59a754d95a8795517473fd559e9608220434",
      "status": "success",
      "buildurl": "https://github.com/r-universe/azizadeboye/actions/runs/26872626756"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-06-03T08:27:15.000Z",
      "commit": "28b84a17ce6170ae7360bc8e757d944aafcb0446",
      "fileid": "6f87623c04a78e6e0768e6ca7445e294c246217daaba4c1ea111f2fdc32f5a1d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/azizadeboye/actions/runs/26872626756"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-06-03T08:27:28.000Z",
      "commit": "28b84a17ce6170ae7360bc8e757d944aafcb0446",
      "fileid": "d810f45ee63b192b565f370575a16e0a5cd69959888f34e99d540034caba9123",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/azizadeboye/actions/runs/26872626756"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-06-03T08:27:17.000Z",
      "commit": "28b84a17ce6170ae7360bc8e757d944aafcb0446",
      "fileid": "4c2dab0ce201381389d11e614600e1b7ea8ddfb855c21e874a7779ea4a301bb9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/azizadeboye/actions/runs/26872626756"
    }
  ]
}