{
  "_id": "6af0964394cdbf48db2b0758",
  "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-11-08 08:42:22 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/a24bdd7b8bb71ba7ed52ea3c8129486a66f15cb10a17c97ccc444883ec3eac7a",
  "_filesize": 1112817,
  "_sha256": "a24bdd7b8bb71ba7ed52ea3c8129486a66f15cb10a17c97ccc444883ec3eac7a",
  "_expires": "2027-02-16T08:53:15.000Z",
  "_created": "2026-11-08T08:42:22.000Z",
  "_published": "2026-11-08T15:33:23.047Z",
  "_upstream": "https://github.com/liuyanguu/shapforxgboost",
  "_status": "success",
  "_maintainer": {
    "name": "Yang Liu",
    "email": "lyhello@gmail.com",
    "login": "liuyanguu",
    "orcid": "0000-0001-6557-6439",
    "description": "Statistician",
    "uuid": 11966330
  },
  "_jobs": [
    {
      "job": 128772294810,
      "time": 182,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13611475744"
    },
    {
      "job": 128772294984,
      "time": 168,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13611381054"
    },
    {
      "job": 128772292846,
      "time": 213,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13623330944"
    },
    {
      "job": 128772292892,
      "time": 142,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13622943308"
    },
    {
      "job": 128772315867,
      "time": 233,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13611490260"
    },
    {
      "job": 128772294214,
      "time": 121,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13610847326"
    },
    {
      "job": 128772293985,
      "time": 94,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13610568061"
    },
    {
      "job": 128772294620,
      "time": 122,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13610806768"
    },
    {
      "job": 128772294793,
      "time": 126,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13611066722"
    }
  ],
  "_buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/42463799826",
  "_commit": {
    "id": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
    "author": "Yang Liu <lyhello@gmail.com>",
    "committer": "Yang Liu <lyhello@gmail.com>",
    "message": "update date\n",
    "time": 1765645979
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": 1,
  "_updates": [
    {
      "week": "2025-50",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 142,
  "_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",
    "followers": 47,
    "description": "Statistician"
  },
  "_downloads": {
    "count": 1589,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/SHAPforxgboost"
  },
  "_mentions": 3,
  "_devurl": "https://github.com/liuyanguu/shapforxgboost",
  "_searchresults": 456,
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/SHAPforxgboost.html",
    "LICENSE"
  ],
  "_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",
    "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.142710852749877,
  "_indexed": true,
  "_nocasepkg": "shapforxgboost",
  "_universes": [
    "liuyanguu"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-11-08T08:45:01.000Z",
      "distro": "resolute",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "https://r2.ropensci.org/4ea516fa1c83d42c9d39bcea0a633dfa72a6fd7b4a6aa121f8172d88b5913cd3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/42463799826"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-11-08T08:44:52.000Z",
      "distro": "resolute",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "https://r2.ropensci.org/7dbf933fd96f51688a6545b7966f12a3ab25af9bdf7a5cbccd1f9f46a4f21663",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/42463799826"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-11-08T15:23:14.000Z",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "https://r2.ropensci.org/b1415a01c2fa87365f7e9c512a4146167d23cf32effb8c096299e3fb24154a6f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/42463799826"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-11-08T15:32:07.000Z",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "https://r2.ropensci.org/6726be565e7f464c0a30192cb013d1970f929929e4d5736501666cf2e0da7185",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/42463799826"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0",
      "date": "2026-11-08T08:44:47.000Z",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "https://r2.ropensci.org/f1cd17e7edb8f82ad2ae2f6666e6baa84ee988004ec18f2a4cc0d141911a6964",
      "status": "success",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/42463799826"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-11-08T08:43:39.000Z",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "https://r2.ropensci.org/6e6adb5f14e0db9e42dc68dadae14beec9fe936dabc2d3650b4dec13f71fe04a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/42463799826"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-11-08T08:43:58.000Z",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "https://r2.ropensci.org/871ad494d216aa2524374dfdfa96159532b8df7b200746ac0e2785d445754966",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/42463799826"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-11-08T08:43:55.000Z",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "https://r2.ropensci.org/170eb0eb3827c85603140b303a4d3fe51ec9be8c6684eaf4bffbe695d1b8e230",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/42463799826"
    }
  ]
}