{
  "_id": "6a1033faacfb0bcc41c98c7e",
  "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-05-12 08:01: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>",
  "MD5sum": "fdb6709ab6745a0a1456fd363c008cb6",
  "_user": "liuyanguu",
  "_type": "src",
  "_file": "SHAPforxgboost_0.2.0.tar.gz",
  "_fileid": "8de2185980cdf7789e131f0f83a23c43b4184d17266ee8567273feb562bf557f",
  "_filesize": 1118616,
  "_sha256": "8de2185980cdf7789e131f0f83a23c43b4184d17266ee8567273feb562bf557f",
  "_created": "2026-05-12T08:01:22.000Z",
  "_published": "2026-05-22T10:46:18.052Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77364246769,
      "time": 203,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6938813598"
    },
    {
      "job": 77364246578,
      "time": 234,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6938822764"
    },
    {
      "job": 77364246542,
      "time": 192,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6938801180"
    },
    {
      "job": 77364246541,
      "time": 185,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6938797991"
    },
    {
      "job": 77364246276,
      "time": 266,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6938750751"
    },
    {
      "job": 77364246231,
      "time": 141,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7158656441"
    },
    {
      "job": 77364246647,
      "time": 131,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6938791422"
    },
    {
      "job": 77364246773,
      "time": 154,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6938798642"
    },
    {
      "job": 77364246853,
      "time": 120,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6938787817"
    }
  ],
  "_buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/25721327242",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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",
    "uuid": 11966330,
    "orcid": "0000-0001-6557-6439"
  },
  "_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": 135,
  "_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": 3914,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/SHAPforxgboost"
  },
  "_mentions": 3,
  "_devurl": "https://github.com/liuyanguu/shapforxgboost",
  "_searchresults": 401,
  "_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.75746272659616,
  "_indexed": true,
  "_nocasepkg": "shapforxgboost",
  "_universes": [
    "liuyanguu"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-05-12T08:04:07.000Z",
      "distro": "noble",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "d088af917fe776d8c2d7502d64d8ed60b6fb8574e73d5bee5f812220e4b08b1a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/25721327242"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-05-12T08:04:38.000Z",
      "distro": "noble",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "73f3f792487271f4cce675b2208eeacc03e4ba0c5fd329cdebf55335b5778f63",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/25721327242"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-05-12T08:03:49.000Z",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "498ffc60a590575a283da9379d42713f06b14c02a200cd9e7fd5f726ee920d39",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/25721327242"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-05-12T08:03:24.000Z",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "7997c325f2c1ed4378e62b8401bba053c773e5779152554204876aa2a2861067",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/25721327242"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-05-12T08:02:51.000Z",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "15205a30074f840d6250fea0afd184828e27ff5ce6473910bfdd44bb81c7a403",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/25721327242"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-05-12T08:03:16.000Z",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "636ebe8a6d47509516363bd50916bb0d7ecd3b6dff7a79176fd2a399fa86a782",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/25721327242"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-05-12T08:02:42.000Z",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "823ebd9cb9d5f7474ed0ca58d18d2e3e1fe0efa56f5091e81815efd85dcd0d56",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/25721327242"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0",
      "date": "2026-05-22T10:46:01.000Z",
      "commit": "02363396a61ef4e617a1f91ee4fa0a70bc0ed55b",
      "fileid": "267b7dfda5ee518f07dc211a059986e5a06b86d21f3dfe032504446902f118a7",
      "status": "success",
      "buildurl": "https://github.com/r-universe/liuyanguu/actions/runs/25721327242"
    }
  ]
}