{
  "_id": "6a4a04f69ce196b5e5a91da3",
  "Package": "SHAPforxgboost",
  "Title": "SHAP Plots for 'XGBoost'",
  "Version": "0.2.0",
  "Date": "2025-12-23",
  "Authors@R": "c(\nperson(given = \"Yang\", family = \"Liu\", role = c(\"aut\", \"cre\"), email = \"lyhello@gmail.com\",\ncomment = c(ORCID = \"0000-0001-6557-6439\")),\nperson(given = \"Allan\", family = \"Just\", role = c(\"aut\", \"ctb\"), email = \"allan.just@mssm.edu\",\ncomment = c(ORCID = \"0000-0003-4312-5957\")),\nperson(given = \"Michael\", family = \"Mayer\", role = c(\"ctb\"), email = \"mayermichael79@gmail.com\")\n)",
  "Description": "Aid in visual data investigations using SHAP (SHapley\nAdditive exPlanation) visualization plots for 'XGBoost' and\n'LightGBM'. It provides summary plot, dependence plot,\ninteraction plot, and force plot and relies on the SHAP\nimplementation provided by 'XGBoost' and 'LightGBM'.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/liuyanguu/SHAPforxgboost",
  "BugReports": "https://github.com/liuyanguu/SHAPforxgboost/issues",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "Config/pak/sysreqs": "cmake libfontconfig1-dev libfreetype6-dev make\nlibicu-dev libuv1-dev zlib1g-dev",
  "Repository": "https://liuyanguu.r-universe.dev",
  "Date/Publication": "2025-12-13 17:12:59 UTC",
  "RemoteUrl": "https://github.com/liuyanguu/shapforxgboost",
  "RemoteRef": "HEAD",
  "RemoteSha": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-11 08:32:33 UTC",
    "User": "root"
  },
  "Author": "Yang Liu [aut, cre] (ORCID: <https://orcid.org/0000-0001-6557-6439>),\nAllan Just [aut, ctb] (ORCID: <https://orcid.org/0000-0003-4312-5957>),\nMichael Mayer [ctb]",
  "Maintainer": "Yang Liu <lyhello@gmail.com>",
  "_user": "liuyanguu",
  "_type": "src",
  "_file": "SHAPforxgboost_0.2.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/b0d0fbf4f3a8fd54822b4f0c74467331d1d3adf216586cd0aae0faf489faca48",
  "_filesize": 1115463,
  "_sha256": "b0d0fbf4f3a8fd54822b4f0c74467331d1d3adf216586cd0aae0faf489faca48",
  "_expires": "2026-10-13T07:17:08.000Z",
  "_created": "2026-06-11T08:32:33.000Z",
  "_published": "2026-07-05T07:17:10.466Z",
  "_jobs": [
    {
      "job": 85202290153,
      "time": 195,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7558970226"
    },
    {
      "job": 85202290219,
      "time": 199,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7558972007"
    },
    {
      "job": 85202290305,
      "time": 216,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7558969076"
    },
    {
      "job": 85202290193,
      "time": 515,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7559068732"
    },
    {
      "job": 85202290163,
      "time": 210,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7558893187"
    },
    {
      "job": 85202290236,
      "time": 135,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7558946432"
    },
    {
      "job": 85202290267,
      "time": 130,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7558944891"
    },
    {
      "job": 85202290280,
      "time": 128,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7558943957"
    },
    {
      "job": 85202290317,
      "time": 127,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7558943663"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/27334158600",
  "_status": "success",
  "_upstream": "https://github.com/liuyanguu/shapforxgboost",
  "_commit": {
    "id": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
    "author": "Yang Liu <lyhello@gmail.com>",
    "committer": "Yang Liu <lyhello@gmail.com>",
    "message": "update date\n",
    "time": 1765645979
  },
  "_maintainer": {
    "name": "Yang Liu",
    "email": "lyhello@gmail.com",
    "login": "liuyanguu",
    "orcid": "0000-0001-6557-6439",
    "description": "Statistician",
    "uuid": 11966330
  },
  "_distro": "noble",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.0.0",
      "role": "Imports"
    },
    {
      "package": "xgboost",
      "version": ">= 0.81.0.0",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "version": ">= 1.12.0",
      "role": "Imports"
    },
    {
      "package": "ggforce",
      "version": ">= 0.2.1.9000",
      "role": "Imports"
    },
    {
      "package": "ggExtra",
      "version": ">= 0.8",
      "role": "Imports"
    },
    {
      "package": "RColorBrewer",
      "version": ">= 1.1.2",
      "role": "Imports"
    },
    {
      "package": "ggpubr",
      "role": "Imports"
    },
    {
      "package": "BBmisc",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "gridExtra",
      "version": ">= 2.3",
      "role": "Suggests"
    },
    {
      "package": "here",
      "role": "Suggests"
    },
    {
      "package": "parallel",
      "role": "Suggests"
    },
    {
      "package": "lightgbm",
      "version": ">= 2.1",
      "role": "Suggests"
    }
  ],
  "_owner": "liuyanguu",
  "_selfowned": true,
  "_usedby": 2,
  "_updates": [
    {
      "week": "2025-50",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 136,
  "_contributors": [
    {
      "user": "liuyanguu",
      "count": 84,
      "uuid": 11966330
    },
    {
      "user": "mayer79",
      "count": 17,
      "uuid": 16206095
    },
    {
      "user": "yfyang86",
      "count": 5,
      "uuid": 1158522
    },
    {
      "user": "smidtfab",
      "count": 1,
      "uuid": 9453363
    }
  ],
  "_userbio": {
    "uuid": 11966330,
    "type": "user",
    "name": "Yang Liu",
    "description": "Statistician"
  },
  "_downloads": {
    "count": 3251,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/SHAPforxgboost"
  },
  "_mentions": 3,
  "_devurl": "https://github.com/liuyanguu/shapforxgboost",
  "_searchresults": 449,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/SHAPforxgboost.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/liuyanguu/shapforxgboost",
  "_realowner": "liuyanguu",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.1",
      "date": "2019-08-03"
    },
    {
      "version": "0.0.2",
      "date": "2019-08-28"
    },
    {
      "version": "0.0.3",
      "date": "2020-02-09"
    },
    {
      "version": "0.0.4",
      "date": "2020-05-14"
    },
    {
      "version": "0.1.0",
      "date": "2021-01-07"
    },
    {
      "version": "0.1.1",
      "date": "2021-03-28"
    },
    {
      "version": "0.1.3",
      "date": "2023-05-29"
    },
    {
      "version": "0.2.0",
      "date": "2025-12-13"
    }
  ],
  "_exports": [
    "scatter.plot.diagonal",
    "scatter.plot.simple",
    "shap.importance",
    "shap.plot.dependence",
    "shap.plot.force_plot",
    "shap.plot.force_plot_bygroup",
    "shap.plot.summary",
    "shap.plot.summary.wrap1",
    "shap.plot.summary.wrap2",
    "shap.prep",
    "shap.prep.interaction",
    "shap.prep.stack.data",
    "shap.values"
  ],
  "_datasets": [
    {
      "name": "dataXY_df",
      "title": "Terra satellite data (X,Y) for running the xgboost model .",
      "object": "dataXY_df",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "dayint",
        "Column_WV",
        "AOT_Uncertainty",
        "elev",
        "aod",
        "RelAZ",
        "DevAll_P1km",
        "dist_water_km",
        "forestProp_1km",
        "diffcwv"
      ],
      "rows": 10148,
      "table": true,
      "tojson": true
    },
    {
      "name": "labels_within_package",
      "title": "labels_within_package: Some labels package auther defined to make his plot, mainly serve the paper publication.",
      "object": "labels_within_package",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "shap_int_iris",
      "title": "The interaction effect SHAP values example using iris dataset.",
      "object": "shap_int_iris",
      "class": [
        "array"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "shap_long_iris",
      "title": "The long-format SHAP values example using iris dataset.",
      "object": "shap_long_iris",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "ID",
        "variable",
        "value",
        "rfvalue",
        "stdfvalue",
        "mean_value"
      ],
      "rows": 600,
      "table": true,
      "tojson": true
    },
    {
      "name": "shap_score",
      "title": "SHAP values example from dataXY_df .",
      "object": "shap_score",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "dayint",
        "Column_WV",
        "AOT_Uncertainty",
        "elev",
        "aod",
        "RelAZ",
        "DevAll_P1km",
        "dist_water_km",
        "forestProp_1km"
      ],
      "rows": 10148,
      "table": true,
      "tojson": true
    },
    {
      "name": "shap_values_iris",
      "title": "SHAP values example using iris dataset.",
      "object": "shap_values_iris",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "Sepal.Length",
        "Sepal.Width",
        "Petal.Length",
        "Petal.Width"
      ],
      "rows": 150,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "dataXY_df",
      "title": "Terra satellite data (X,Y) for running the xgboost model .",
      "topics": [
        "dataXY_df"
      ]
    },
    {
      "page": "label.feature",
      "title": "Modify labels for features under plotting",
      "topics": [
        "label.feature"
      ]
    },
    {
      "page": "labels_within_package",
      "title": "labels_within_package: Some labels package auther defined to make his plot, mainly serve the paper publication.",
      "topics": [
        "labels_within_package"
      ]
    },
    {
      "page": "new_labels",
      "title": "new_labels: a place holder default to NULL.",
      "topics": [
        "new_labels"
      ]
    },
    {
      "page": "plot.label",
      "title": "Internal-function to revise axis label for each feature",
      "topics": [
        "plot.label"
      ]
    },
    {
      "page": "scatter.plot.diagonal",
      "title": "Make customized scatter plot with diagonal line and R2 printed.",
      "topics": [
        "scatter.plot.diagonal"
      ]
    },
    {
      "page": "scatter.plot.simple",
      "title": "Simple scatter plot, adding marginal histogram by default.",
      "topics": [
        "scatter.plot.simple"
      ]
    },
    {
      "page": "shap_int_iris",
      "title": "The interaction effect SHAP values example using iris dataset.",
      "topics": [
        "shap_int_iris"
      ]
    },
    {
      "page": "shap_long_iris",
      "title": "The long-format SHAP values example using iris dataset.",
      "topics": [
        "shap_long_iris"
      ]
    },
    {
      "page": "shap_score",
      "title": "SHAP values example from dataXY_df .",
      "topics": [
        "shap_score"
      ]
    },
    {
      "page": "shap_values_iris",
      "title": "SHAP values example using iris dataset.",
      "topics": [
        "shap_values_iris"
      ]
    },
    {
      "page": "shap.importance",
      "title": "Variable importance as measured by mean absolute SHAP value.",
      "topics": [
        "shap.importance"
      ]
    },
    {
      "page": "shap.plot.dependence",
      "title": "SHAP dependence and interaction plots",
      "topics": [
        "shap.plot.dependence"
      ]
    },
    {
      "page": "shap.plot.force_plot",
      "title": "Create SHAP force plot (stacked bar chart)",
      "topics": [
        "shap.plot.force_plot"
      ]
    },
    {
      "page": "shap.plot.force_plot_bygroup",
      "title": "Create faceted SHAP force plots by cluster",
      "topics": [
        "shap.plot.force_plot_bygroup"
      ]
    },
    {
      "page": "shap.plot.summary",
      "title": "SHAP summary plot using long-format SHAP values",
      "topics": [
        "shap.plot.summary"
      ]
    },
    {
      "page": "shap.plot.summary.wrap1",
      "title": "A wrapped function to make summary plot from model object and predictors",
      "topics": [
        "shap.plot.summary.wrap1"
      ]
    },
    {
      "page": "shap.plot.summary.wrap2",
      "title": "A wrapped function to make summary plot from given SHAP values matrix",
      "topics": [
        "shap.plot.summary.wrap2"
      ]
    },
    {
      "page": "shap.prep",
      "title": "Prepare SHAP values into long format for plotting",
      "topics": [
        "shap.prep"
      ]
    },
    {
      "page": "shap.prep.interaction",
      "title": "Prepare the interaction SHAP values from predict.xgb.Booster",
      "topics": [
        "shap.prep.interaction"
      ]
    },
    {
      "page": "shap.prep.stack.data",
      "title": "Prepare data for SHAP force plot (stacked bar chart)",
      "topics": [
        "shap.prep.stack.data"
      ]
    },
    {
      "page": "shap.values",
      "title": "Get SHAP scores from a trained XGBoost or LightGBM model",
      "topics": [
        "shap.values"
      ]
    }
  ],
  "_pkglogo": "https://github.com/liuyanguu/shapforxgboost/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/liuyanguu/shapforxgboost/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "base64enc",
    "BBmisc",
    "boot",
    "broom",
    "bslib",
    "cachem",
    "car",
    "carData",
    "checkmate",
    "cli",
    "colorspace",
    "colourpicker",
    "commonmark",
    "corrplot",
    "cowplot",
    "cpp11",
    "data.table",
    "Deriv",
    "digest",
    "doBy",
    "dplyr",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "forecast",
    "Formula",
    "fracdiff",
    "fs",
    "generics",
    "ggExtra",
    "ggforce",
    "ggplot2",
    "ggpubr",
    "ggrepel",
    "ggsci",
    "ggsignif",
    "glue",
    "gridExtra",
    "gtable",
    "highr",
    "htmltools",
    "htmlwidgets",
    "httpuv",
    "isoband",
    "jquerylib",
    "jsonlite",
    "knitr",
    "labeling",
    "later",
    "lattice",
    "lifecycle",
    "lme4",
    "lmtest",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "memoise",
    "mgcv",
    "microbenchmark",
    "mime",
    "miniUI",
    "minqa",
    "modelr",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "otel",
    "pbkrtest",
    "pillar",
    "pkgconfig",
    "polyclip",
    "polynom",
    "promises",
    "purrr",
    "quantreg",
    "R6",
    "rappdirs",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "rlang",
    "rmarkdown",
    "rstatix",
    "S7",
    "sass",
    "scales",
    "shiny",
    "shinyjs",
    "sourcetools",
    "SparseM",
    "stringi",
    "stringr",
    "survival",
    "systemfonts",
    "tibble",
    "tidyr",
    "tidyselect",
    "timeDate",
    "tinytex",
    "tweenr",
    "urca",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "xgboost",
    "xtable",
    "yaml",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "basic_workflow.Rmd",
      "filename": "basic_workflow.html",
      "title": "Basic Workflow",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Training the model",
        "SHAP analysis",
        "References"
      ],
      "created": "2021-03-26 04:18:11",
      "modified": "2022-05-18 02:29:14",
      "commits": 2
    }
  ],
  "_score": 9.729165983028654,
  "_indexed": true,
  "_nocasepkg": "shapforxgboost",
  "_universes": [
    "liuyanguu"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-06-11T08:35:10.000Z",
      "distro": "noble",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "https://r2.ropensci.org/9fcb0559bf891675a75d204d5c4ca627b01795896c7611459dbe139da2d21577",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/27334158600"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-06-11T08:35:17.000Z",
      "distro": "noble",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "https://r2.ropensci.org/0b392fb89cf3d9c4f85dc927f9ceb453a084a01fa18393d5f6856887249188a8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/27334158600"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-06-11T08:35:17.000Z",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "https://r2.ropensci.org/eb8a8df3d8a51bbfeb0b4188345260857e2e1724d4c368a95b099aaee71e9ad8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/27334158600"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-06-11T08:37:58.000Z",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "https://r2.ropensci.org/a6a116c3dd5ccb2ae4751d70c0fc7a5b8df34402b40a80b65601cb2644681bd0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/27334158600"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0",
      "date": "2026-06-11T08:35:07.000Z",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "https://r2.ropensci.org/4a2422935c8ecae4661f6fe3343eebcae7dd9df5395b602f8e7f542878f4236e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/27334158600"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-06-11T08:33:58.000Z",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "https://r2.ropensci.org/0046f79e6068c8b038da6dcae7e9cf25e078a6b14a5e39dd10c4df6cbbcc0c43",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/27334158600"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-06-11T08:33:57.000Z",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "https://r2.ropensci.org/d64b1dfab2da10ee8742a6d61b82baaa52d5716ddc05680d5664a9ce592aa4aa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/27334158600"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-06-11T08:33:58.000Z",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "https://r2.ropensci.org/839facad6ad777e9daf36a2923367a6d2ea62ea23e9b29b0fd216f3418b6bac7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/27334158600"
    }
  ]
}