diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 3f658af..051ae6e 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -9,6 +9,7 @@ on: branches: - main - master + workflow_dispatch: name: R-CMD-check @@ -18,16 +19,17 @@ jobs: env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v2 - - uses: r-lib/actions/setup-r@v1 - - uses: r-lib/actions/setup-pandoc@master - - name: Install dependencies - run: | - install.packages(c("remotes", "rcmdcheck")) - remotes::install_deps(dependencies = TRUE) - Sys.setenv('_R_CHECK_SYSTEM_CLOCK_' = 0) - shell: Rscript {0} - - name: Check - run: | - rcmdcheck::rcmdcheck(args = c("--as-cran", "--no-manual"), error_on = "note") - shell: Rscript {0} + - uses: actions/checkout@v3 + + - uses: r-lib/actions/setup-r@v2 + with: + use-public-rspm: true + + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + extra-packages: any::rcmdcheck + needs: check + + - uses: r-lib/actions/check-r-package@v2 + with: + error-on: '"note"' diff --git a/.github/workflows/articles.yml b/.github/workflows/articles.yml index 65e0f2b..751f51b 100644 --- a/.github/workflows/articles.yml +++ b/.github/workflows/articles.yml @@ -1,26 +1,31 @@ -# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag. -# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions +# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples +# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help on: push: - branches: - - main - - master + branches: [main, master] pull_request: - branches: - - main - - master + branches: [main, master] + workflow_dispatch: name: articles jobs: articles: - runs-on: macOS-latest + runs-on: ubuntu-latest env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + R_KEEP_PKG_SOURCE: yes steps: - - uses: actions/checkout@v2 - - uses: r-lib/actions/setup-r@v1 - - uses: r-lib/actions/setup-pandoc@master + - uses: actions/checkout@v3 + + - uses: r-lib/actions/setup-r@v2 + with: + use-public-rspm: true + + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + extra-packages: any::rcmdcheck + needs: check - name: Install dependencies run: | install.packages(c("remotes", "devtools", "tidyverse", "pkgdown")) diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 47537cb..0836517 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -1,46 +1,51 @@ +# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples +# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help on: push: - branches: - - master + branches: [main, master] pull_request: - branches: - - master + branches: [main, master] + workflow_dispatch: name: test-coverage jobs: test-coverage: - runs-on: macOS-latest + runs-on: ubuntu-latest env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: r-lib/actions/setup-r@master + - uses: r-lib/actions/setup-r@v2 + with: + use-public-rspm: true - - uses: r-lib/actions/setup-pandoc@master + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + extra-packages: any::covr + needs: coverage - - name: Query dependencies + - name: Test coverage run: | - install.packages('remotes') - saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2) - writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version") + covr::codecov( + quiet = FALSE, + clean = FALSE, + install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package") + ) shell: Rscript {0} - - name: Cache R packages - uses: actions/cache@v1 - with: - path: ${{ env.R_LIBS_USER }} - key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }} - restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1- - - - name: Install dependencies + - name: Show testthat output + if: always() run: | - install.packages(c("remotes")) - remotes::install_deps(dependencies = TRUE) - remotes::install_cran("covr") - shell: Rscript {0} + ## -------------------------------------------------------------------- + find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true + shell: bash - - name: Test coverage - run: covr::codecov() - shell: Rscript {0} \ No newline at end of file + - name: Upload test results + if: failure() + uses: actions/upload-artifact@v3 + with: + name: coverage-test-failures + path: ${{ runner.temp }}/package \ No newline at end of file diff --git a/.github/workflows/parcats.yml b/.github/workflows/parcats.yml index 2021cd5..0673f38 100644 --- a/.github/workflows/parcats.yml +++ b/.github/workflows/parcats.yml @@ -1,26 +1,31 @@ -# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag. -# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions +# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples +# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help on: push: - branches: - - main - - master + branches: [main, master] pull_request: - branches: - - main - - master + branches: [main, master] + workflow_dispatch: name: parcats jobs: parcats: - runs-on: macOS-latest + runs-on: ubuntu-latest env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + R_KEEP_PKG_SOURCE: yes steps: - - uses: actions/checkout@v2 - - uses: r-lib/actions/setup-r@v1 - - uses: r-lib/actions/setup-pandoc@master + - uses: actions/checkout@v3 + + - uses: r-lib/actions/setup-r@v2 + with: + use-public-rspm: true + + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + extra-packages: any::rcmdcheck + needs: check - name: Install dependencies run: | install.packages(c("remotes", "devtools")) diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index 7292a0a..22908e5 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -1,52 +1,55 @@ +# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples +# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help on: push: - branches: - - main - - master + branches: [main, master] + pull_request: + branches: [main, master] + release: + types: [published] + workflow_dispatch: name: pkgdown jobs: pkgdown: - runs-on: macOS-latest + runs-on: ubuntu-latest + # Only restrict concurrency for non-PR jobs + concurrency: + group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }} env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + permissions: + contents: write steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: r-lib/actions/setup-r@v1 + - uses: r-lib/actions/setup-pandoc@v2 - - uses: r-lib/actions/setup-pandoc@master - - - name: Query dependencies - run: | - install.packages('remotes') - saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2) - writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version") - shell: Rscript {0} - - - name: Cache R packages - uses: actions/cache@v2 + - uses: r-lib/actions/setup-r@v2 with: - path: ${{ env.R_LIBS_USER }} - key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }} - restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1- + use-public-rspm: true + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + extra-packages: any::pkgdown, local::. + needs: website - name: Install dependencies run: | - remotes::install_deps(dependencies = TRUE) - install.packages("tidyverse") - install.packages("pkgdown", type = "binary") + install.packages("devtools") system("git clone https://github.com/erblast/parcats.git") - remotes::install_deps("parcats/", dependencies = TRUE) - devtools::install("parcats/") + devtools::install("parcats/", dependencies = TRUE) shell: Rscript {0} - - name: Install package - run: R CMD INSTALL . - - name: Deploy package - run: | - git config --local user.email "actions@github.com" - git config --local user.name "GitHub Actions" - Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE, run_dont_run = FALSE)' + - name: Build site + run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) + shell: Rscript {0} + + - name: Deploy to GitHub pages 🚀 + if: github.event_name != 'pull_request' + uses: JamesIves/github-pages-deploy-action@v4.4.1 + with: + clean: false + branch: gh-pages + folder: docs \ No newline at end of file diff --git a/.gitignore b/.gitignore index e20b7d0..88794e0 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ docs/ *.rdx *.RData *.rdb -vignettes/model_response_cache/ \ No newline at end of file +vignettes/model_response_cache/ +.DS_Store \ No newline at end of file diff --git a/DESCRIPTION b/DESCRIPTION index 1271d16..064ec65 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: easyalluvial Title: Generate Alluvial Plots with a Single Line of Code -Version: 0.3.1 +Version: 0.3.1.900 Authors@R: person( "Bjoern", "Koneswarakantha", role = c("aut","cre"), email = "datistics@gmail.com", comment = c(ORCID = "0000-0003-4585-7799") ) URL: https://github.com/erblast/easyalluvial/ Description: Alluvial plots are similar to sankey diagrams and visualise categorical data @@ -39,7 +39,7 @@ Suggests: rpart, glmnet, xgboost -RoxygenNote: 7.2.0 +RoxygenNote: 7.2.3 Imports: purrr , tidyr (>= 1.0.0) diff --git a/NEWS.md b/NEWS.md index 33798cf..74c2b8a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -49,7 +49,7 @@ argument which will be converted to bin label. # 20181812 0.1.7 CRAN released -# 20181118 +# 20181118 0.0.1 CRAN submission diff --git a/R/alluvial_model_response.R b/R/alluvial_model_response.R index 895b99b..d9f24be 100644 --- a/R/alluvial_model_response.R +++ b/R/alluvial_model_response.R @@ -1095,7 +1095,8 @@ alluvial_model_response_caret = function(train, data_input, degree = 4, bins = 5 #'@inheritSection get_pdp_predictions Parallel Processing #' @examples #' -#' if(check_pkg_installed("parsnip", raise_error = FALSE)) { +#' if(check_pkg_installed("parsnip", raise_error = FALSE) & +#' check_pkg_installed("vip", raise_error = FALSE)) { #' df = mtcars2[, ! names(mtcars2) %in% 'ids' ] #' #' m = parsnip::rand_forest(mode = "regression") %>% diff --git a/man/alluvial_model_response_parsnip.Rd b/man/alluvial_model_response_parsnip.Rd index 65842f4..994ebc4 100644 --- a/man/alluvial_model_response_parsnip.Rd +++ b/man/alluvial_model_response_parsnip.Rd @@ -92,7 +92,8 @@ this model visualisation approach follows the "visualising the model \examples{ -if(check_pkg_installed("parsnip", raise_error = FALSE)) { +if(check_pkg_installed("parsnip", raise_error = FALSE) & + check_pkg_installed("vip", raise_error = FALSE)) { df = mtcars2[, ! names(mtcars2) \%in\% 'ids' ] m = parsnip::rand_forest(mode = "regression") \%>\% diff --git a/tests/figs/alluvial-long/long-all-nums-plus-fill.svg b/tests/figs/alluvial-long/long-all-nums-plus-fill.svg deleted file mode 100644 index b7e72fa..0000000 --- a/tests/figs/alluvial-long/long-all-nums-plus-fill.svg +++ /dev/null @@ -1,406 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -LL - -ML - -M - -MH - -HH - -LL - -ML - -M - -MH - -HH - -LL - -ML - -M - -MH - -HH - -LL - -ML - -M - -MH - -HH - -LL - -ML - -M - -MH - -HH - - - - - -0 -50 -100 -150 -200 - - - - - - - - - - -Q1 -Q2 -Q3 -Q4 -mean_spots_per_year -count -long_all_nums_plus_fill -Number of flows: 66 -Original Dataframe reduced to 28.1 % -Maximum weight of a singfle flow 20.4 % - diff --git a/tests/figs/alluvial-long/long-all-nums.svg b/tests/figs/alluvial-long/long-all-nums.svg deleted file mode 100644 index b3d1293..0000000 --- a/tests/figs/alluvial-long/long-all-nums.svg +++ /dev/null @@ -1,289 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -LL - -ML - -M - -MH - -HH - -LL - -ML - -M - -MH - -HH - -LL - -ML - -M - -MH - -HH - -LL - -ML - -M - -MH - -HH - - - - - -0 -50 -100 -150 -200 - - - - - - - - - -Q1 -Q2 -Q3 -Q4 -count -long_all_nums -Number of flows: 55 -Original Dataframe reduced to 23.4 % -Maximum weight of a singfle flow 20.4 % - diff --git a/tests/figs/alluvial-long/long-fill-carrier.svg b/tests/figs/alluvial-long/long-fill-carrier.svg deleted file mode 100644 index 7730735..0000000 --- a/tests/figs/alluvial-long/long-fill-carrier.svg +++ /dev/null @@ -1,561 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -late - -on_time - -late - -on_time - -late - -on_time - -late - -on_time - -9E - -AA - -AS - -B6 - -DL - -EV - -F9 - -FL - -HA - -MQ - -UA - -US - -VX - - - - - -0 -100 -200 -300 -400 - - - - - - - - - - -Q1 -Q2 -Q3 -Q4 -carrier -count -long_fill_carrier -Number of flows: 108 -Original Dataframe reduced to 26.9 % -Maximum weight of a singfle flow 9.2 % - diff --git a/tests/figs/alluvial-long/long-fill-first.svg b/tests/figs/alluvial-long/long-fill-first.svg deleted file mode 100644 index a4be0e0..0000000 --- a/tests/figs/alluvial-long/long-fill-first.svg +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -late - -on_time - -late - -on_time - -late - -on_time - -late - -on_time - - - - - -0 -100 -200 -300 -400 - - - - - - - - - -Q1 -Q2 -Q3 -Q4 -count -long_fill_first -Number of flows: 16 -Original Dataframe reduced to 4 % -Maximum weight of a singfle flow 32.3 % - diff --git a/tests/figs/alluvial-long/long-fill-last.svg b/tests/figs/alluvial-long/long-fill-last.svg deleted file mode 100644 index 2412e02..0000000 --- a/tests/figs/alluvial-long/long-fill-last.svg +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -late - -on_time - -late - -on_time - -late - -on_time - -late - -on_time - - - - - -0 -100 -200 -300 -400 - - - - - - - - - -Q1 -Q2 -Q3 -Q4 -count -long_fill_last -Number of flows: 16 -Original Dataframe reduced to 4 % -Maximum weight of a singfle flow 32.3 % - diff --git a/tests/figs/alluvial-long/long-fill-to-right.svg b/tests/figs/alluvial-long/long-fill-to-right.svg deleted file mode 100644 index db8b073..0000000 --- a/tests/figs/alluvial-long/long-fill-to-right.svg +++ /dev/null @@ -1,561 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -9E - -AA - -AS - -B6 - -DL - -EV - -F9 - -FL - -HA - -MQ - -UA - -US - -VX - -late - -on_time - -late - -on_time - -late - -on_time - -late - -on_time - - - - - -0 -100 -200 -300 -400 - - - - - - - - - - -carrier -Q1 -Q2 -Q3 -Q4 -count -long_fill_to_right -Number of flows: 108 -Original Dataframe reduced to 26.9 % -Maximum weight of a singfle flow 9.2 % - diff --git a/tests/figs/alluvial-long/long-fill-value.svg b/tests/figs/alluvial-long/long-fill-value.svg deleted file mode 100644 index b0069ba..0000000 --- a/tests/figs/alluvial-long/long-fill-value.svg +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -late - -on_time - -late - -on_time - -late - -on_time - -late - -on_time - - - - - -0 -100 -200 -300 -400 - - - - - - - - - -Q1 -Q2 -Q3 -Q4 -count -long_fill_value -Number of flows: 16 -Original Dataframe reduced to 4 % -Maximum weight of a singfle flow 32.3 % - diff --git a/tests/figs/alluvial-long/long-reorder-carrier-by-size.svg b/tests/figs/alluvial-long/long-reorder-carrier-by-size.svg deleted file mode 100644 index 137d0f6..0000000 --- a/tests/figs/alluvial-long/long-reorder-carrier-by-size.svg +++ /dev/null @@ -1,561 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -late - -on_time - -late - -on_time - -late - -on_time - -late - -on_time - -B6 - -US - -DL - -AA - -MQ - -VX - -EV - -UA - -9E - -F9 - -FL - -HA - -AS - - - - - -0 -100 -200 -300 -400 - - - - - - - - - - -Q1 -Q2 -Q3 -Q4 -carrier -count -long_reorder_carrier_by_size -Number of flows: 108 -Original Dataframe reduced to 26.9 % -Maximum weight of a singfle flow 9.2 % - diff --git a/tests/figs/alluvial-long/long-reorder-x-levels.svg b/tests/figs/alluvial-long/long-reorder-x-levels.svg deleted file mode 100644 index bb0e62d..0000000 --- a/tests/figs/alluvial-long/long-reorder-x-levels.svg +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -late - -on_time - -late - -on_time - -late - -on_time - -late - -on_time - - - - - -0 -100 -200 -300 -400 - - - - - - - - - -Q4 -Q3 -Q2 -Q1 -count -long_reorder_x_levels -Number of flows: 16 -Original Dataframe reduced to 4 % -Maximum weight of a singfle flow 32.3 % - diff --git a/tests/figs/alluvial-long/long-reorder-y-levels.svg b/tests/figs/alluvial-long/long-reorder-y-levels.svg deleted file mode 100644 index b3f3412..0000000 --- a/tests/figs/alluvial-long/long-reorder-y-levels.svg +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -on_time - -late - -on_time - -late - -on_time - -late - -on_time - -late - - - - - -0 -100 -200 -300 -400 - - - - - - - - - -Q1 -Q2 -Q3 -Q4 -count -long_reorder_y_levels -Number of flows: 16 -Original Dataframe reduced to 4 % -Maximum weight of a singfle flow 32.3 % - diff --git a/tests/figs/alluvial-long/long-sprecify-color.svg b/tests/figs/alluvial-long/long-sprecify-color.svg deleted file mode 100644 index a16e3ed..0000000 --- a/tests/figs/alluvial-long/long-sprecify-color.svg +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -late - -on_time - -late - -on_time - -late - -on_time - -late - -on_time - - - - - -0 -100 -200 -300 -400 - - - - - - - - - -Q1 -Q2 -Q3 -Q4 -count -long_sprecify_color -Number of flows: 16 -Original Dataframe reduced to 4 % -Maximum weight of a singfle flow 32.3 % - diff --git a/tests/figs/alluvial-model-response/model-response-all-facs.svg b/tests/figs/alluvial-model-response/model-response-all-facs.svg deleted file mode 100644 index 7752cca..0000000 --- a/tests/figs/alluvial-model-response/model-response-all-facs.svg +++ /dev/null @@ -1,203 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -no - -yes - -Mr -y: 0.12 -n: 0.31 - -Mrs -y: 0.24 -n: 0.15 - -Miss -y: 0.24 -n: 0.15 - -Master -y: 0.29 -n: 0.08 - -Sir -y: 0.12 -n: 0.31 - -male -y: 0.24 -n: 0.85 - -female -y: 0.76 -n: 0.15 - -1 -y: 0.47 -n: 0.15 - -2 -y: 0.35 -n: 0.31 - -3 -y: 0.18 -n: 0.54 - - - - - -0 -10 -20 -30 - - - - - - - - -pred -title -Sex -Pclass -count -Presented Variables account for 100 % of Variable Importance -Model Response Plot - diff --git a/tests/figs/alluvial-model-response/model-response-all-nums.svg b/tests/figs/alluvial-model-response/model-response-all-nums.svg deleted file mode 100644 index 847d5de..0000000 --- a/tests/figs/alluvial-model-response/model-response-all-nums.svg +++ /dev/null @@ -1,573 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -LL -(121,170] - -ML -(170,216] - -M -(216,271] - -MH -(271,322] - -HH -(322,373] - -52 -HH: 0 -MH: 0.08 -M: 0.18 -ML: 0.32 -LL: 0.5 - -78.5 -HH: 0 -MH: 0.08 -M: 0.18 -ML: 0.32 -LL: 0.5 - -150 -HH: 0.21 -MH: 0.15 -M: 0.38 -ML: 0.12 -LL: 0 - -245 -HH: 0.42 -MH: 0.35 -M: 0.12 -ML: 0.12 -LL: 0 - -335 -HH: 0.37 -MH: 0.35 -M: 0.15 -ML: 0.12 -LL: 0 - -10.4 -HH: 0.42 -MH: 0.35 -M: 0.12 -ML: 0.12 -LL: 0 - -14.7 -HH: 0.37 -MH: 0.19 -M: 0.26 -ML: 0.12 -LL: 0 - -19.4 -HH: 0.21 -MH: 0.15 -M: 0.32 -ML: 0.06 -LL: 0.33 - -30.4 -HH: 0 -MH: 0.15 -M: 0.15 -ML: 0.35 -LL: 0.33 - -33.9 -HH: 0 -MH: 0.15 -M: 0.15 -ML: 0.35 -LL: 0.33 - -1.51 -HH: 0 -MH: 0.12 -M: 0.18 -ML: 0.29 -LL: 0.5 - -2.04 -HH: 0 -MH: 0.15 -M: 0.15 -ML: 0.29 -LL: 0.5 - -3.44 -HH: 0.16 -MH: 0.19 -M: 0.32 -ML: 0.18 -LL: 0 - -5.3 -HH: 0.42 -MH: 0.27 -M: 0.18 -ML: 0.12 -LL: 0 - -5.42 -HH: 0.42 -MH: 0.27 -M: 0.18 -ML: 0.12 -LL: 0 - - - - - -0 -40 -80 -120 - - - - - - - - -pred -hp -mpg -wt -count -Presented Variables account for 65.8 % of Variable Importance -Model Response Plot -Variables not shown have been set to median or mode: drat: 3.695; qsec: 17.71 - diff --git a/tests/figs/alluvial-model-response/model-response-cat-bi.svg b/tests/figs/alluvial-model-response/model-response-cat-bi.svg deleted file mode 100644 index aecb377..0000000 --- a/tests/figs/alluvial-model-response/model-response-cat-bi.svg +++ /dev/null @@ -1,355 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -automatic - -manual - -1.51 -m: 0.5 -a: 0.12 - -2.04 -m: 0.5 -a: 0.12 - -3.44 -m: 0 -a: 0.25 - -5.3 -m: 0 -a: 0.25 - -5.42 -m: 0 -a: 0.25 - -3 -m: 0 -a: 0.42 - -4 -m: 0.38 -a: 0.32 - -5 -m: 0.62 -a: 0.25 - -2.76 -m: 0.12 -a: 0.22 - -3.07 -m: 0.12 -a: 0.22 - -3.9 -m: 0.25 -a: 0.19 - -4.32 -m: 0.25 -a: 0.19 - -4.93 -m: 0.25 -a: 0.19 - - - - - -0 -20 -40 -60 - - - - - - - - -pred -wt -gear -drat -count -Presented Variables account for 61.8 % of Variable Importance -Model Response Plot -Variables not shown have been set to median or mode: disp: 196.3; qsec: 17.71; mpg: 19.2; hp: 123; carb: 4; cyl: 8; vs: V - diff --git a/tests/figs/alluvial-model-response/model-response-cat-multi.svg b/tests/figs/alluvial-model-response/model-response-cat-multi.svg deleted file mode 100644 index 400f738..0000000 --- a/tests/figs/alluvial-model-response/model-response-cat-multi.svg +++ /dev/null @@ -1,532 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -4 - -6 - -8 - -71.1 -8: 0.07 -6: 0.5 -4: 0.5 - -120.7 -8: 0.07 -6: 0.5 -4: 0.5 - -275.8 -8: 0.29 -6: 0 -4: 0 - -360 -8: 0.29 -6: 0 -4: 0 - -472 -8: 0.29 -6: 0 -4: 0 - -10.4 -8: 0.24 -6: 0.22 -4: 0 - -14.7 -8: 0.24 -6: 0.22 -4: 0 - -19.4 -8: 0.17 -6: 0.56 -4: 0 - -30.4 -8: 0.17 -6: 0 -4: 0.5 - -33.9 -8: 0.17 -6: 0 -4: 0.5 - -52 -8: 0.17 -6: 0.33 -4: 0.2 - -78.5 -8: 0.17 -6: 0.33 -4: 0.2 - -150 -8: 0.22 -6: 0.11 -4: 0.2 - -245 -8: 0.22 -6: 0.11 -4: 0.2 - -335 -8: 0.22 -6: 0.11 -4: 0.2 - - - - - -0 -40 -80 -120 - - - - - - - - -pred -disp -mpg -hp -count -Presented Variables account for 68 % of Variable Importance -Model Response Plot -Variables not shown have been set to median or mode: wt: 3.325; carb: 4; vs: V; drat: 3.695; qsec: 17.71; gear: 3; am: automatic - diff --git a/tests/figs/alluvial-model-response/model-response-new-change-bins-3.svg b/tests/figs/alluvial-model-response/model-response-new-change-bins-3.svg deleted file mode 100644 index e443dd6..0000000 --- a/tests/figs/alluvial-model-response/model-response-new-change-bins-3.svg +++ /dev/null @@ -1,479 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -L -(-94.4,89.5] - -M -(89.5,275] - -H -(275,461] - -4 -H: 0.19 -M: 0.3 -L: 0.56 - -6 -H: 0.26 -M: 0.38 -L: 0.34 - -8 -H: 0.55 -M: 0.32 -L: 0.1 - -1 -H: 0.25 -M: 0.16 -L: 0.09 - -2 -H: 0.26 -M: 0.16 -L: 0.07 - -3 -H: 0.09 -M: 0.18 -L: 0.23 - -4 -H: 0.22 -M: 0.15 -L: 0.13 - -6 -H: 0.1 -M: 0.19 -L: 0.2 - -8 -H: 0.07 -M: 0.16 -L: 0.29 - -1.51 -H: 0 -M: 0.14 -L: 0.53 - -2.04 -H: 0 -M: 0.23 -L: 0.37 - -3.44 -H: 0.1 -M: 0.32 -L: 0.1 - -5.3 -H: 0.44 -M: 0.16 -L: 0 - -5.42 -H: 0.46 -M: 0.14 -L: 0 - - - - - -0 -100 -200 - - - - - - - -pred -cyl -carb -wt -count -Presented Variables account for 80.5 % of Variable Importance -Model Response Plot -Variables not shown have been set to median or mode: gear: 3; gear: 4; gear: 5; am: automatic; am: automatic; am: automatic; qsec: 17.71; qsec: 17.71; qsec: 17.71; vs: V; vs: V; -vs: V; mpg: 19.2; mpg: 19.2; mpg: 19.2; drat: 3.695; drat: 3.695; drat: 3.695; hp: 123; hp: 123; hp: 123 - diff --git a/tests/figs/alluvial-model-response/model-response-new-change-bins-7.svg b/tests/figs/alluvial-model-response/model-response-new-change-bins-7.svg deleted file mode 100644 index 936a04d..0000000 --- a/tests/figs/alluvial-model-response/model-response-new-change-bins-7.svg +++ /dev/null @@ -1,1336 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -LLL -(-94.4,98.1] - -LL -(98.1,144] - -ML -(144,203] - -M -(203,254] - -MH -(254,317] - -HH -(317,409] - -HHH -(409,466] - -4 -HHH: 0 -HH: 0.08 -MH: 0.38 -M: 0.27 -ML: 0.42 -LL: 0.17 -LLL: 0.55 - -6 -HHH: 0 -HH: 0.41 -MH: 0.3 -M: 0.43 -ML: 0.17 -LL: 0.53 -LLL: 0.32 - -8 -HHH: 1 -HH: 0.51 -MH: 0.32 -M: 0.3 -ML: 0.4 -LL: 0.3 -LLL: 0.12 - -1 -HHH: 0.31 -HH: 0.26 -MH: 0.19 -M: 0.11 -ML: 0.22 -LL: 0.17 -LLL: 0.08 - -2 -HHH: 0.38 -HH: 0.26 -MH: 0.16 -M: 0.16 -ML: 0.17 -LL: 0.17 -LLL: 0.08 - -3 -HHH: 0 -HH: 0.1 -MH: 0.16 -M: 0.22 -ML: 0.1 -LL: 0.2 -LLL: 0.23 - -4 -HHH: 0.31 -HH: 0.15 -MH: 0.27 -M: 0.11 -ML: 0.17 -LL: 0.17 -LLL: 0.12 - -6 -HHH: 0 -HH: 0.15 -MH: 0.11 -M: 0.22 -ML: 0.15 -LL: 0.17 -LLL: 0.22 - -8 -HHH: 0 -HH: 0.08 -MH: 0.11 -M: 0.19 -ML: 0.17 -LL: 0.13 -LLL: 0.27 - -1.51 -HHH: 0 -HH: 0 -MH: 0 -M: 0.03 -ML: 0.17 -LL: 0.27 -LLL: 0.51 - -2.04 -HHH: 0 -HH: 0 -MH: 0 -M: 0.14 -ML: 0.17 -LL: 0.47 -LLL: 0.38 - -3.44 -HHH: 0 -HH: 0.05 -MH: 0.19 -M: 0.32 -ML: 0.42 -LL: 0.27 -LLL: 0.11 - -5.3 -HHH: 0.46 -HH: 0.46 -MH: 0.41 -M: 0.27 -ML: 0.12 -LL: 0 -LLL: 0 - -5.42 -HHH: 0.54 -HH: 0.49 -MH: 0.41 -M: 0.24 -ML: 0.1 -LL: 0 -LLL: 0 - -3 -HHH: 0.46 -HH: 0.44 -MH: 0.24 -M: 0.43 -ML: 0.28 -LL: 0.43 -LLL: 0.24 - -4 -HHH: 0.08 -HH: 0.28 -MH: 0.38 -M: 0.22 -ML: 0.45 -LL: 0.23 -LLL: 0.42 - -5 -HHH: 0.46 -HH: 0.28 -MH: 0.38 -M: 0.35 -ML: 0.28 -LL: 0.33 -LLL: 0.34 - - - - - -0 -100 -200 - - - - - - - - -pred -cyl -carb -wt -gear -count -Presented Variables account for 90.4 % of Variable Importance -Model Response Plot -Variables not shown have been set to median or mode: am: automatic; qsec: 17.71; vs: V; mpg: 19.2; drat: 3.695; hp: 123 - diff --git a/tests/figs/alluvial-model-response/model-response-new-labs.svg b/tests/figs/alluvial-model-response/model-response-new-labs.svg deleted file mode 100644 index 3d7b6c8..0000000 --- a/tests/figs/alluvial-model-response/model-response-new-labs.svg +++ /dev/null @@ -1,554 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -A -(-94.4,14.4] - -B -(14.4,126] - -C -(126,236] - -D -(236,348] - -E -(348,461] - -4 -E: 0 -D: 0.28 -C: 0.34 -B: 0.39 -A: 0.69 - -6 -E: 0.28 -D: 0.36 -C: 0.29 -B: 0.39 -A: 0.31 - -8 -E: 0.72 -D: 0.36 -C: 0.37 -B: 0.22 -A: 0 - -1 -E: 0.31 -D: 0.18 -C: 0.17 -B: 0.14 -A: 0 - -2 -E: 0.31 -D: 0.19 -C: 0.16 -B: 0.14 -A: 0 - -3 -E: 0.06 -D: 0.12 -C: 0.18 -B: 0.17 -A: 0.35 - -4 -E: 0.22 -D: 0.21 -C: 0.17 -B: 0.14 -A: 0.04 - -6 -E: 0.09 -D: 0.16 -C: 0.14 -B: 0.2 -A: 0.23 - -8 -E: 0 -D: 0.13 -C: 0.17 -B: 0.19 -A: 0.38 - -1.51 -E: 0 -D: 0 -C: 0.12 -B: 0.42 -A: 0.62 - -2.04 -E: 0 -D: 0.01 -C: 0.21 -B: 0.39 -A: 0.38 - -3.44 -E: 0 -D: 0.18 -C: 0.38 -B: 0.19 -A: 0 - -5.3 -E: 0.47 -D: 0.4 -C: 0.16 -B: 0 -A: 0 - -5.42 -E: 0.53 -D: 0.4 -C: 0.13 -B: 0 -A: 0 - - - - - -0 -100 -200 - - - - - - - -pred -cyl -carb -wt -count -Presented Variables account for 80.5 % of Variable Importance -Model Response Plot -Variables not shown have been set to median or mode: gear: 3; gear: 4; gear: 5; am: automatic; am: automatic; am: automatic; qsec: 17.71; qsec: 17.71; qsec: 17.71; vs: V; vs: V; -vs: V; mpg: 19.2; mpg: 19.2; mpg: 19.2; drat: 3.695; drat: 3.695; drat: 3.695; hp: 123; hp: 123; hp: 123 - diff --git a/tests/figs/alluvial-model-response/model-response-pdb-non-binary.svg b/tests/figs/alluvial-model-response/model-response-pdb-non-binary.svg deleted file mode 100644 index b179d21..0000000 --- a/tests/figs/alluvial-model-response/model-response-pdb-non-binary.svg +++ /dev/null @@ -1,532 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -4 - -6 - -8 - -71.1 -8: 0.09 -6: 0.47 -4: 0.31 - -120.7 -8: 0.08 -6: 0.53 -4: 0.31 - -275.8 -8: 0.28 -6: 0 -4: 0.12 - -360 -8: 0.28 -6: 0 -4: 0.12 - -472 -8: 0.28 -6: 0 -4: 0.12 - -10.4 -8: 0.28 -6: 0.24 -4: 0 - -14.7 -8: 0.28 -6: 0.24 -4: 0 - -19.4 -8: 0.21 -6: 0.53 -4: 0 - -30.4 -8: 0.12 -6: 0 -4: 0.5 - -33.9 -8: 0.12 -6: 0 -4: 0.5 - -52 -8: 0.12 -6: 0.35 -4: 0.31 - -78.5 -8: 0.12 -6: 0.35 -4: 0.31 - -150 -8: 0.25 -6: 0.12 -4: 0.12 - -245 -8: 0.25 -6: 0.12 -4: 0.12 - -335 -8: 0.26 -6: 0.06 -4: 0.12 - - - - - -0 -40 -80 -120 - - - - - - - - -pred -disp -mpg -hp -count -Presented Variables account for 68 % of Variable Importance -Partial Dependence Alluvial Plot -Indicated values replace corresponding values in training data set. For each unique combination predictions from entire training data set were averaged. - diff --git a/tests/figs/alluvial-model-response/model-response-pdb.svg b/tests/figs/alluvial-model-response/model-response-pdb.svg deleted file mode 100644 index 066a81b..0000000 --- a/tests/figs/alluvial-model-response/model-response-pdb.svg +++ /dev/null @@ -1,408 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -LL -(154,190] - -ML -(190,219] - -M -(219,257] - -MH -(257,294] - -HH -(294,339] - -4 -HH: 0 -MH: 0.2 -M: 0.29 -ML: 0.5 -LL: 0.6 - -6 -HH: 0 -MH: 0.25 -M: 0.35 -ML: 0.5 -LL: 0.4 - -8 -HH: 1 -MH: 0.55 -M: 0.35 -ML: 0 -LL: 0 - -10.4 -HH: 0.38 -MH: 0.35 -M: 0.18 -ML: 0.1 -LL: 0 - -14.7 -HH: 0.38 -MH: 0.3 -M: 0.12 -ML: 0.2 -LL: 0 - -19.4 -HH: 0.25 -MH: 0.05 -M: 0.47 -ML: 0.1 -LL: 0.2 - -30.4 -HH: 0 -MH: 0.15 -M: 0.12 -ML: 0.3 -LL: 0.4 - -33.9 -HH: 0 -MH: 0.15 -M: 0.12 -ML: 0.3 -LL: 0.4 - -52 -HH: 0 -MH: 0.1 -M: 0.24 -ML: 0.2 -LL: 0.5 - -78.5 -HH: 0 -MH: 0.1 -M: 0.24 -ML: 0.2 -LL: 0.5 - -150 -HH: 0.25 -MH: 0.2 -M: 0.29 -ML: 0.2 -LL: 0 - -245 -HH: 0.38 -MH: 0.3 -M: 0.12 -ML: 0.2 -LL: 0 - -335 -HH: 0.38 -MH: 0.3 -M: 0.12 -ML: 0.2 -LL: 0 - - - - - -0 -20 -40 -60 - - - - - - - - -pred -cyl -mpg -hp -count -Presented Variables account for 59.7 % of Variable Importance -Partial Dependence Alluvial Plot -Indicated values replace corresponding values in training data set. For each unique combination predictions from entire training data set were averaged. - diff --git a/tests/figs/alluvial-model-response/model-response.svg b/tests/figs/alluvial-model-response/model-response.svg deleted file mode 100644 index c50e308..0000000 --- a/tests/figs/alluvial-model-response/model-response.svg +++ /dev/null @@ -1,408 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -LL -(176,212] - -ML -(212,242] - -M -(242,276] - -MH -(276,324] - -HH -(324,363] - -4 -HH: 0 -MH: 0.22 -M: 0.33 -ML: 0.42 -LL: 0.6 - -6 -HH: 0 -MH: 0.22 -M: 0.5 -ML: 0.42 -LL: 0.4 - -8 -HH: 1 -MH: 0.57 -M: 0.17 -ML: 0.17 -LL: 0 - -10.4 -HH: 0.5 -MH: 0.35 -M: 0.17 -ML: 0.08 -LL: 0 - -14.7 -HH: 0.5 -MH: 0.26 -M: 0.17 -ML: 0.17 -LL: 0 - -19.4 -HH: 0 -MH: 0.13 -M: 0.67 -ML: 0.08 -LL: 0.2 - -30.4 -HH: 0 -MH: 0.13 -M: 0 -ML: 0.33 -LL: 0.4 - -33.9 -HH: 0 -MH: 0.13 -M: 0 -ML: 0.33 -LL: 0.4 - -52 -HH: 0 -MH: 0.09 -M: 0.17 -ML: 0.25 -LL: 0.5 - -78.5 -HH: 0 -MH: 0.09 -M: 0.17 -ML: 0.25 -LL: 0.5 - -150 -HH: 0.33 -MH: 0.22 -M: 0.33 -ML: 0.17 -LL: 0 - -245 -HH: 0.33 -MH: 0.3 -M: 0.17 -ML: 0.17 -LL: 0 - -335 -HH: 0.33 -MH: 0.3 -M: 0.17 -ML: 0.17 -LL: 0 - - - - - -0 -20 -40 -60 - - - - - - - - -pred -cyl -mpg -hp -count -Presented Variables account for 59.7 % of Variable Importance -Model Response Plot -Variables not shown have been set to median or mode: wt: 3.325; drat: 3.695; gear: 3; qsec: 17.71; vs: V; carb: 4; am: automatic - diff --git a/tests/figs/alluvial-wide/wide-all-flows.svg b/tests/figs/alluvial-wide/wide-all-flows.svg deleted file mode 100644 index d56f4db..0000000 --- a/tests/figs/alluvial-wide/wide-all-flows.svg +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -LL - -ML - -M - -MH - -HH - -4 - -6 - -8 - -LL - -ML - -M - -MH - -HH - -LL - -ML - -M - -MH - -HH - -LL - -ML - -M - -MH - -HH - - - - - -0 -10 -20 -30 - - - - - - - - - -mpg -cyl -disp -hp -drat -count -wide_all_flows -Number of flows: 24 -Original Dataframe reduced to 75 % -Maximum weight of a single flow 9.4 % - diff --git a/tests/figs/alluvial-wide/wide-first.svg b/tests/figs/alluvial-wide/wide-first.svg deleted file mode 100644 index 457cba1..0000000 --- a/tests/figs/alluvial-wide/wide-first.svg +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -LL - -ML - -M - -MH - -HH - -4 - -6 - -8 - -LL - -ML - -M - -MH - -HH - -LL - -ML - -M - -MH - -HH - -LL - -ML - -M - -MH - -HH - - - - - -0 -10 -20 -30 - - - - - - - - - -mpg -cyl -disp -hp -drat -count -wide_first -Number of flows: 24 -Original Dataframe reduced to 75 % -Maximum weight of a single flow 9.4 % - diff --git a/tests/figs/alluvial-wide/wide-islr-cars-rotate-labels.svg b/tests/figs/alluvial-wide/wide-islr-cars-rotate-labels.svg deleted file mode 100644 index f293477..0000000 --- a/tests/figs/alluvial-wide/wide-islr-cars-rotate-labels.svg +++ /dev/null @@ -1,453 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -LL - -ML - -M - -MH - -HH - -3 - -4 - -5 - -6 - -8 - -LL - -ML - -M - -MH - -HH - -LL - -ML - -M - -MH - -HH - -LL - -ML - -M - -MH - -HH - - - - - -0 -100 -200 -300 -400 - - - - - - - - - - -mpg -cylinders -displacement -horsepower -weight -count -wide_ISLR_cars_rotate_labels -Number of flows: 78 -Original Dataframe reduced to 19.9 % -Maximum weight of a single flow 6.6 % - diff --git a/tests/figs/alluvial-wide/wide-islr-cars.svg b/tests/figs/alluvial-wide/wide-islr-cars.svg deleted file mode 100644 index 6774eab..0000000 --- a/tests/figs/alluvial-wide/wide-islr-cars.svg +++ /dev/null @@ -1,453 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -LL - -ML - -M - -MH - -HH - -3 - -4 - -5 - -6 - -8 - -LL - -ML - -M - -MH - -HH - -LL - -ML - -M - -MH - -HH - -LL - -ML - -M - -MH - -HH - - - - - -0 -100 -200 -300 -400 - - - - - - - - - - -mpg -cylinders -displacement -horsepower -weight -count -wide_ISLR_cars -Number of flows: 78 -Original Dataframe reduced to 19.9 % -Maximum weight of a single flow 6.6 % - diff --git a/tests/figs/alluvial-wide/wide-last.svg b/tests/figs/alluvial-wide/wide-last.svg deleted file mode 100644 index 1bdb7f8..0000000 --- a/tests/figs/alluvial-wide/wide-last.svg +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -LL - -ML - -M - -MH - -HH - -4 - -6 - -8 - -LL - -ML - -M - -MH - -HH - -LL - -ML - -M - -MH - -HH - -LL - -ML - -M - -MH - -HH - - - - - -0 -10 -20 -30 - - - - - - - - - -mpg -cyl -disp -hp -drat -count -wide_last -Number of flows: 24 -Original Dataframe reduced to 75 % -Maximum weight of a single flow 9.4 % - diff --git a/tests/figs/alluvial-wide/wide-reorder-y-levels.svg b/tests/figs/alluvial-wide/wide-reorder-y-levels.svg deleted file mode 100644 index c6b5a09..0000000 --- a/tests/figs/alluvial-wide/wide-reorder-y-levels.svg +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -LL - -ML - -M - -MH - -HH - -8 - -4 - -6 - -LL - -ML - -M - -MH - -HH - -LL - -ML - -M - -MH - -HH - -LL - -ML - -M - -MH - -HH - - - - - -0 -10 -20 -30 - - - - - - - - - -mpg -cyl -disp -hp -drat -count -wide_reorder_y_levels -Number of flows: 24 -Original Dataframe reduced to 75 % -Maximum weight of a single flow 9.4 % - diff --git a/tests/figs/alluvial-wide/wide-values.svg b/tests/figs/alluvial-wide/wide-values.svg deleted file mode 100644 index 520fdf9..0000000 --- a/tests/figs/alluvial-wide/wide-values.svg +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -LL - -ML - -M - -MH - -HH - -4 - -6 - -8 - -LL - -ML - -M - -MH - -HH - -LL - -ML - -M - -MH - -HH - -LL - -ML - -M - -MH - -HH - - - - - -0 -10 -20 -30 - - - - - - - - - -mpg -cyl -disp -hp -drat -count -wide_values -Number of flows: 24 -Original Dataframe reduced to 75 % -Maximum weight of a single flow 9.4 % - diff --git a/tests/figs/deps.txt b/tests/figs/deps.txt deleted file mode 100644 index 8d7f66b..0000000 --- a/tests/figs/deps.txt +++ /dev/null @@ -1,3 +0,0 @@ -- vdiffr-svg-engine: 1.0 -- vdiffr: 0.3.3 -- freetypeharfbuzz: 0.2.5 diff --git a/tests/figs/marginal-histograms/mod-cat-pred-train.svg b/tests/figs/marginal-histograms/mod-cat-pred-train.svg deleted file mode 100644 index 9bda890..0000000 --- a/tests/figs/marginal-histograms/mod-cat-pred-train.svg +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -cyl - - - - - - - - - - - -pred_train - - - - - - - - - - - -pred - - - - - -4 -6 -8 -4 -6 -8 -4 -6 -8 -mod_cat_pred_train - diff --git a/tests/figs/marginal-histograms/mod-cat-pred.svg b/tests/figs/marginal-histograms/mod-cat-pred.svg deleted file mode 100644 index aa5b32f..0000000 --- a/tests/figs/marginal-histograms/mod-cat-pred.svg +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -cyl - - - - - - - - - - - -pred - - - - - -4 -6 -8 -4 -6 -8 -mod_cat_pred - diff --git a/tests/figs/marginal-histograms/mod-num-cat.svg b/tests/figs/marginal-histograms/mod-num-cat.svg deleted file mode 100644 index 89545c4..0000000 --- a/tests/figs/marginal-histograms/mod-num-cat.svg +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - -1 -2 -3 -4 -6 -8 -mod_num_cat - diff --git a/tests/figs/marginal-histograms/mod-num-num.svg b/tests/figs/marginal-histograms/mod-num-num.svg deleted file mode 100644 index c405d7c..0000000 --- a/tests/figs/marginal-histograms/mod-num-num.svg +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -2 -3 -4 -5 -mod_num_num - diff --git a/tests/figs/marginal-histograms/mod-num-pred-train.svg b/tests/figs/marginal-histograms/mod-num-pred-train.svg deleted file mode 100644 index 76dc715..0000000 --- a/tests/figs/marginal-histograms/mod-num-pred-train.svg +++ /dev/null @@ -1,169 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -pred -pred_train -disp -0 -250 -500 -mod_num_pred_train - diff --git a/tests/figs/marginal-histograms/mod-num-pred.svg b/tests/figs/marginal-histograms/mod-num-pred.svg deleted file mode 100644 index f6f317b..0000000 --- a/tests/figs/marginal-histograms/mod-num-pred.svg +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -pred -disp -0 -250 -500 -mod_num_pred - diff --git a/tests/figs/marginal-histograms/plot-hist-long-cat-fill.svg b/tests/figs/marginal-histograms/plot-hist-long-cat-fill.svg deleted file mode 100644 index fb9cc91..0000000 --- a/tests/figs/marginal-histograms/plot-hist-long-cat-fill.svg +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -9E -AA -AS -B6 -DL -EV -F9 -FL -HA -MQ -UA -US -VX -plot_hist_long_cat_fill - diff --git a/tests/figs/marginal-histograms/plot-hist-long-cat.svg b/tests/figs/marginal-histograms/plot-hist-long-cat.svg deleted file mode 100644 index f266b14..0000000 --- a/tests/figs/marginal-histograms/plot-hist-long-cat.svg +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - -late -on_time -plot_hist_long_cat - diff --git a/tests/figs/marginal-histograms/plot-hist-long-num-has-fill.svg b/tests/figs/marginal-histograms/plot-hist-long-num-has-fill.svg deleted file mode 100644 index 02637ef..0000000 --- a/tests/figs/marginal-histograms/plot-hist-long-num-has-fill.svg +++ /dev/null @@ -1,282 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -50 -100 -150 -200 -plot_hist_long_num_has_fill - diff --git a/tests/figs/marginal-histograms/plot-hist-long-num-is-fill.svg b/tests/figs/marginal-histograms/plot-hist-long-num-is-fill.svg deleted file mode 100644 index 8783c07..0000000 --- a/tests/figs/marginal-histograms/plot-hist-long-num-is-fill.svg +++ /dev/null @@ -1,985 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -100 -200 -plot_hist_long_num_is_fill - diff --git a/tests/figs/marginal-histograms/plot-hist-long-num.svg b/tests/figs/marginal-histograms/plot-hist-long-num.svg deleted file mode 100644 index c1a4a1e..0000000 --- a/tests/figs/marginal-histograms/plot-hist-long-num.svg +++ /dev/null @@ -1,282 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -50 -100 -150 -200 -plot_hist_long_num - diff --git a/tests/figs/marginal-histograms/plot-hist-wide-cat.svg b/tests/figs/marginal-histograms/plot-hist-wide-cat.svg deleted file mode 100644 index 4a7d594..0000000 --- a/tests/figs/marginal-histograms/plot-hist-wide-cat.svg +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - - - - - -4 -6 -8 -plot_hist_wide_cat - diff --git a/tests/figs/marginal-histograms/plot-hist-wide-num.svg b/tests/figs/marginal-histograms/plot-hist-wide-num.svg deleted file mode 100644 index b1c70b4..0000000 --- a/tests/figs/marginal-histograms/plot-hist-wide-num.svg +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -200 -400 -600 -plot_hist_wide_num - diff --git a/tests/figs/plot-condensation/cond-price-first.svg b/tests/figs/plot-condensation/cond-price-first.svg deleted file mode 100644 index 69798cc..0000000 --- a/tests/figs/plot-condensation/cond-price-first.svg +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -percent condensation - - - - - - - - - - -number of flows - - - - - -price -carat -price -carat -x -price -carat -x -y -price -carat -x -y -z -price -carat -x -y -z -depth -price -carat -x -y -z -depth -cut -price -carat -x -y -z -depth -cut -table -price -carat -x -y -z -depth -cut -table -clarity -price -carat -x -y -z -depth -cut -table -clarity -color -0 -5000 -10000 -15000 -0.0 -0.1 -0.2 -0.3 -0.4 -0.5 -cond_price_first - diff --git a/tests/figs/plot-condensation/cond-with-first.svg b/tests/figs/plot-condensation/cond-with-first.svg deleted file mode 100644 index d790881..0000000 --- a/tests/figs/plot-condensation/cond-with-first.svg +++ /dev/null @@ -1,187 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -percent condensation - - - - - - - - - - -number of flows - - - - - -disp -cyl -disp -cyl -vs -disp -cyl -vs -am -disp -cyl -vs -am -gear -disp -cyl -vs -am -gear -hp -disp -cyl -vs -am -gear -hp -mpg -disp -cyl -vs -am -gear -hp -mpg -wt -disp -cyl -vs -am -gear -hp -mpg -wt -qsec -disp -cyl -vs -am -gear -hp -mpg -wt -qsec -carb -disp -cyl -vs -am -gear -hp -mpg -wt -qsec -carb -drat -0 -10 -20 -30 -0.00 -0.25 -0.50 -0.75 -cond_with_first - diff --git a/tests/figs/plot-condensation/cond.svg b/tests/figs/plot-condensation/cond.svg deleted file mode 100644 index 472f658..0000000 --- a/tests/figs/plot-condensation/cond.svg +++ /dev/null @@ -1,187 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -percent condensation - - - - - - - - - - -number of flows - - - - - -am -gear -am -gear -vs -am -gear -vs -cyl -am -gear -vs -cyl -disp -am -gear -vs -cyl -disp -hp -am -gear -vs -cyl -disp -hp -mpg -am -gear -vs -cyl -disp -hp -mpg -wt -am -gear -vs -cyl -disp -hp -mpg -wt -qsec -am -gear -vs -cyl -disp -hp -mpg -wt -qsec -carb -am -gear -vs -cyl -disp -hp -mpg -wt -qsec -carb -drat -0 -10 -20 -30 -0.00 -0.25 -0.50 -0.75 -cond - diff --git a/tests/figs/plot-imp/plot-imp.svg b/tests/figs/plot-imp/plot-imp.svg deleted file mode 100644 index 3d4ba07..0000000 --- a/tests/figs/plot-imp/plot-imp.svg +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0.204 -0.161 -0.153 -0.123 -0.098 -0.07 -0.063 -0.062 -0.049 -0.017 -0.518 - -123 - -3.695 - -4 - -3 - -V - -17.71 - -automatic - - - - - -0.00 -0.25 -0.50 -0.75 -1.00 -am -qsec -vs -gear -carb -drat -hp -wt -mpg -cyl -total -alluvial -Percent Importance -plot_imp - diff --git a/tests/testthat/_snaps/alluvial_long/long-all-nums-plus-fill.svg b/tests/testthat/_snaps/alluvial_long/long-all-nums-plus-fill.svg new file mode 100644 index 0000000..c350e89 --- /dev/null +++ b/tests/testthat/_snaps/alluvial_long/long-all-nums-plus-fill.svg @@ -0,0 +1,412 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +LL + +ML + +M + +MH + +HH + +LL + +ML + +M + +MH + +HH + +LL + +ML + +M + +MH + +HH + +LL + +ML + +M + +MH + +HH + +LL + +ML + +M + +MH + +HH + + +0 +50 +100 +150 +200 + + + + + + + + + + +Q1 +Q2 +Q3 +Q4 +mean_spots_per_year +count +long_all_nums_plus_fill +Number of flows: 66 +Original Dataframe reduced to 28.1 % +Maximum weight of a singfle flow 20.4 % + + diff --git a/tests/testthat/_snaps/alluvial_long/long-all-nums.svg b/tests/testthat/_snaps/alluvial_long/long-all-nums.svg new file mode 100644 index 0000000..adbd67f --- /dev/null +++ b/tests/testthat/_snaps/alluvial_long/long-all-nums.svg @@ -0,0 +1,295 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +LL + +ML + +M + +MH + +HH + +LL + +ML + +M + +MH + +HH + +LL + +ML + +M + +MH + +HH + +LL + +ML + +M + +MH + +HH + + +0 +50 +100 +150 +200 + + + + + + + + + +Q1 +Q2 +Q3 +Q4 +count +long_all_nums +Number of flows: 55 +Original Dataframe reduced to 23.4 % +Maximum weight of a singfle flow 20.4 % + + diff --git a/tests/testthat/_snaps/alluvial_long/long-fill-carrier.svg b/tests/testthat/_snaps/alluvial_long/long-fill-carrier.svg new file mode 100644 index 0000000..fc8ecd1 --- /dev/null +++ b/tests/testthat/_snaps/alluvial_long/long-fill-carrier.svg @@ -0,0 +1,567 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +late + +on_time + +late + +on_time + +late + +on_time + +late + +on_time + +9E + +AA + +AS + +B6 + +DL + +EV + +F9 + +FL + +HA + +MQ + +UA + +US + +VX + + +0 +100 +200 +300 +400 + + + + + + + + + + +Q1 +Q2 +Q3 +Q4 +carrier +count +long_fill_carrier +Number of flows: 108 +Original Dataframe reduced to 26.9 % +Maximum weight of a singfle flow 9.2 % + + diff --git a/tests/testthat/_snaps/alluvial_long/long-fill-first.svg b/tests/testthat/_snaps/alluvial_long/long-fill-first.svg new file mode 100644 index 0000000..cfad318 --- /dev/null +++ b/tests/testthat/_snaps/alluvial_long/long-fill-first.svg @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +late + +on_time + +late + +on_time + +late + +on_time + +late + +on_time + + +0 +100 +200 +300 +400 + + + + + + + + + +Q1 +Q2 +Q3 +Q4 +count +long_fill_first +Number of flows: 16 +Original Dataframe reduced to 4 % +Maximum weight of a singfle flow 32.3 % + + diff --git a/tests/testthat/_snaps/alluvial_long/long-fill-last.svg b/tests/testthat/_snaps/alluvial_long/long-fill-last.svg new file mode 100644 index 0000000..3ae582d --- /dev/null +++ b/tests/testthat/_snaps/alluvial_long/long-fill-last.svg @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +late + +on_time + +late + +on_time + +late + +on_time + +late + +on_time + + +0 +100 +200 +300 +400 + + + + + + + + + +Q1 +Q2 +Q3 +Q4 +count +long_fill_last +Number of flows: 16 +Original Dataframe reduced to 4 % +Maximum weight of a singfle flow 32.3 % + + diff --git a/tests/testthat/_snaps/alluvial_long/long-fill-to-right.svg b/tests/testthat/_snaps/alluvial_long/long-fill-to-right.svg new file mode 100644 index 0000000..cab4554 --- /dev/null +++ b/tests/testthat/_snaps/alluvial_long/long-fill-to-right.svg @@ -0,0 +1,567 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +9E + +AA + +AS + +B6 + +DL + +EV + +F9 + +FL + +HA + +MQ + +UA + +US + +VX + +late + +on_time + +late + +on_time + +late + +on_time + +late + +on_time + + +0 +100 +200 +300 +400 + + + + + + + + + + +carrier +Q1 +Q2 +Q3 +Q4 +count +long_fill_to_right +Number of flows: 108 +Original Dataframe reduced to 26.9 % +Maximum weight of a singfle flow 9.2 % + + diff --git a/tests/testthat/_snaps/alluvial_long/long-fill-value.svg b/tests/testthat/_snaps/alluvial_long/long-fill-value.svg new file mode 100644 index 0000000..6cf83f9 --- /dev/null +++ b/tests/testthat/_snaps/alluvial_long/long-fill-value.svg @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +late + +on_time + +late + +on_time + +late + +on_time + +late + +on_time + + +0 +100 +200 +300 +400 + + + + + + + + + +Q1 +Q2 +Q3 +Q4 +count +long_fill_value +Number of flows: 16 +Original Dataframe reduced to 4 % +Maximum weight of a singfle flow 32.3 % + + diff --git a/tests/testthat/_snaps/alluvial_long/long-reorder-carrier-by-size.svg b/tests/testthat/_snaps/alluvial_long/long-reorder-carrier-by-size.svg new file mode 100644 index 0000000..8943489 --- /dev/null +++ b/tests/testthat/_snaps/alluvial_long/long-reorder-carrier-by-size.svg @@ -0,0 +1,567 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +late + +on_time + +late + +on_time + +late + +on_time + +late + +on_time + +B6 + +US + +DL + +AA + +MQ + +VX + +EV + +UA + +9E + +F9 + +FL + +HA + +AS + + +0 +100 +200 +300 +400 + + + + + + + + + + +Q1 +Q2 +Q3 +Q4 +carrier +count +long_reorder_carrier_by_size +Number of flows: 108 +Original Dataframe reduced to 26.9 % +Maximum weight of a singfle flow 9.2 % + + diff --git a/tests/testthat/_snaps/alluvial_long/long-reorder-x-levels.svg b/tests/testthat/_snaps/alluvial_long/long-reorder-x-levels.svg new file mode 100644 index 0000000..37df9bd --- /dev/null +++ b/tests/testthat/_snaps/alluvial_long/long-reorder-x-levels.svg @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +late + +on_time + +late + +on_time + +late + +on_time + +late + +on_time + + +0 +100 +200 +300 +400 + + + + + + + + + +Q4 +Q3 +Q2 +Q1 +count +long_reorder_x_levels +Number of flows: 16 +Original Dataframe reduced to 4 % +Maximum weight of a singfle flow 32.3 % + + diff --git a/tests/testthat/_snaps/alluvial_long/long-reorder-y-levels.svg b/tests/testthat/_snaps/alluvial_long/long-reorder-y-levels.svg new file mode 100644 index 0000000..6e2f3b9 --- /dev/null +++ b/tests/testthat/_snaps/alluvial_long/long-reorder-y-levels.svg @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +on_time + +late + +on_time + +late + +on_time + +late + +on_time + +late + + +0 +100 +200 +300 +400 + + + + + + + + + +Q1 +Q2 +Q3 +Q4 +count +long_reorder_y_levels +Number of flows: 16 +Original Dataframe reduced to 4 % +Maximum weight of a singfle flow 32.3 % + + diff --git a/tests/testthat/_snaps/alluvial_long/long-sprecify-color.svg b/tests/testthat/_snaps/alluvial_long/long-sprecify-color.svg new file mode 100644 index 0000000..45c2ea6 --- /dev/null +++ b/tests/testthat/_snaps/alluvial_long/long-sprecify-color.svg @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +late + +on_time + +late + +on_time + +late + +on_time + +late + +on_time + + +0 +100 +200 +300 +400 + + + + + + + + + +Q1 +Q2 +Q3 +Q4 +count +long_sprecify_color +Number of flows: 16 +Original Dataframe reduced to 4 % +Maximum weight of a singfle flow 32.3 % + + diff --git a/tests/testthat/_snaps/alluvial_model_response/model-response-all-facs.svg b/tests/testthat/_snaps/alluvial_model_response/model-response-all-facs.svg new file mode 100644 index 0000000..55cbb92 --- /dev/null +++ b/tests/testthat/_snaps/alluvial_model_response/model-response-all-facs.svg @@ -0,0 +1,209 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +no + +yes + +Mr +y: 0.12 +n: 0.31 + +Mrs +y: 0.24 +n: 0.15 + +Miss +y: 0.24 +n: 0.15 + +Master +y: 0.29 +n: 0.08 + +Sir +y: 0.12 +n: 0.31 + +male +y: 0.24 +n: 0.85 + +female +y: 0.76 +n: 0.15 + +1 +y: 0.47 +n: 0.15 + +2 +y: 0.35 +n: 0.31 + +3 +y: 0.18 +n: 0.54 + + +0 +10 +20 +30 + + + + + + + + +pred +title +Sex +Pclass +count +Presented Variables account for 100 % of Variable Importance +Model Response Plot + + diff --git a/tests/testthat/_snaps/alluvial_model_response/model-response-all-nums.svg b/tests/testthat/_snaps/alluvial_model_response/model-response-all-nums.svg new file mode 100644 index 0000000..b06c1a8 --- /dev/null +++ b/tests/testthat/_snaps/alluvial_model_response/model-response-all-nums.svg @@ -0,0 +1,579 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +LL +(121,170] + +ML +(170,216] + +M +(216,271] + +MH +(271,322] + +HH +(322,373] + +52 +HH: 0 +MH: 0.08 +M: 0.18 +ML: 0.32 +LL: 0.5 + +78.5 +HH: 0 +MH: 0.08 +M: 0.18 +ML: 0.32 +LL: 0.5 + +150 +HH: 0.21 +MH: 0.15 +M: 0.38 +ML: 0.12 +LL: 0 + +245 +HH: 0.42 +MH: 0.35 +M: 0.12 +ML: 0.12 +LL: 0 + +335 +HH: 0.37 +MH: 0.35 +M: 0.15 +ML: 0.12 +LL: 0 + +10.4 +HH: 0.42 +MH: 0.35 +M: 0.12 +ML: 0.12 +LL: 0 + +14.7 +HH: 0.37 +MH: 0.19 +M: 0.26 +ML: 0.12 +LL: 0 + +19.4 +HH: 0.21 +MH: 0.15 +M: 0.32 +ML: 0.06 +LL: 0.33 + +30.4 +HH: 0 +MH: 0.15 +M: 0.15 +ML: 0.35 +LL: 0.33 + +33.9 +HH: 0 +MH: 0.15 +M: 0.15 +ML: 0.35 +LL: 0.33 + +1.51 +HH: 0 +MH: 0.12 +M: 0.18 +ML: 0.29 +LL: 0.5 + +2.04 +HH: 0 +MH: 0.15 +M: 0.15 +ML: 0.29 +LL: 0.5 + +3.44 +HH: 0.16 +MH: 0.19 +M: 0.32 +ML: 0.18 +LL: 0 + +5.3 +HH: 0.42 +MH: 0.27 +M: 0.18 +ML: 0.12 +LL: 0 + +5.42 +HH: 0.42 +MH: 0.27 +M: 0.18 +ML: 0.12 +LL: 0 + + +0 +40 +80 +120 + + + + + + + + +pred +hp +mpg +wt +count +Presented Variables account for 65.8 % of Variable Importance +Model Response Plot +Variables not shown have been set to median or mode: drat: 3.695; qsec: 17.71 + + diff --git a/tests/testthat/_snaps/alluvial_model_response/model-response-cat-bi.svg b/tests/testthat/_snaps/alluvial_model_response/model-response-cat-bi.svg new file mode 100644 index 0000000..e1e447b --- /dev/null +++ b/tests/testthat/_snaps/alluvial_model_response/model-response-cat-bi.svg @@ -0,0 +1,361 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +automatic + +manual + +1.51 +m: 0.5 +a: 0.12 + +2.04 +m: 0.5 +a: 0.12 + +3.44 +m: 0 +a: 0.25 + +5.3 +m: 0 +a: 0.25 + +5.42 +m: 0 +a: 0.25 + +3 +m: 0 +a: 0.42 + +4 +m: 0.38 +a: 0.32 + +5 +m: 0.62 +a: 0.25 + +2.76 +m: 0.12 +a: 0.22 + +3.07 +m: 0.12 +a: 0.22 + +3.9 +m: 0.25 +a: 0.19 + +4.32 +m: 0.25 +a: 0.19 + +4.93 +m: 0.25 +a: 0.19 + + +0 +20 +40 +60 + + + + + + + + +pred +wt +gear +drat +count +Presented Variables account for 61.8 % of Variable Importance +Model Response Plot +Variables not shown have been set to median or mode: disp: 196.3; qsec: 17.71; mpg: 19.2; hp: 123; carb: 4; cyl: 8; vs: V + + diff --git a/tests/testthat/_snaps/alluvial_model_response/model-response-cat-multi.svg b/tests/testthat/_snaps/alluvial_model_response/model-response-cat-multi.svg new file mode 100644 index 0000000..0b95a4c --- /dev/null +++ b/tests/testthat/_snaps/alluvial_model_response/model-response-cat-multi.svg @@ -0,0 +1,538 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +4 + +6 + +8 + +71.1 +8: 0.07 +6: 0.5 +4: 0.5 + +120.7 +8: 0.07 +6: 0.5 +4: 0.5 + +275.8 +8: 0.29 +6: 0 +4: 0 + +360 +8: 0.29 +6: 0 +4: 0 + +472 +8: 0.29 +6: 0 +4: 0 + +10.4 +8: 0.24 +6: 0.22 +4: 0 + +14.7 +8: 0.24 +6: 0.22 +4: 0 + +19.4 +8: 0.17 +6: 0.56 +4: 0 + +30.4 +8: 0.17 +6: 0 +4: 0.5 + +33.9 +8: 0.17 +6: 0 +4: 0.5 + +52 +8: 0.17 +6: 0.33 +4: 0.2 + +78.5 +8: 0.17 +6: 0.33 +4: 0.2 + +150 +8: 0.22 +6: 0.11 +4: 0.2 + +245 +8: 0.22 +6: 0.11 +4: 0.2 + +335 +8: 0.22 +6: 0.11 +4: 0.2 + + +0 +40 +80 +120 + + + + + + + + +pred +disp +mpg +hp +count +Presented Variables account for 68 % of Variable Importance +Model Response Plot +Variables not shown have been set to median or mode: wt: 3.325; carb: 4; vs: V; drat: 3.695; qsec: 17.71; gear: 3; am: automatic + + diff --git a/tests/testthat/_snaps/alluvial_model_response/model-response-new-change-bins-3.svg b/tests/testthat/_snaps/alluvial_model_response/model-response-new-change-bins-3.svg new file mode 100644 index 0000000..e30222d --- /dev/null +++ b/tests/testthat/_snaps/alluvial_model_response/model-response-new-change-bins-3.svg @@ -0,0 +1,485 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +L +(-94.4,89.5] + +M +(89.5,275] + +H +(275,461] + +4 +H: 0.19 +M: 0.3 +L: 0.56 + +6 +H: 0.26 +M: 0.38 +L: 0.34 + +8 +H: 0.55 +M: 0.32 +L: 0.1 + +1 +H: 0.25 +M: 0.16 +L: 0.09 + +2 +H: 0.26 +M: 0.16 +L: 0.07 + +3 +H: 0.09 +M: 0.18 +L: 0.23 + +4 +H: 0.22 +M: 0.15 +L: 0.13 + +6 +H: 0.1 +M: 0.19 +L: 0.2 + +8 +H: 0.07 +M: 0.16 +L: 0.29 + +1.51 +H: 0 +M: 0.14 +L: 0.53 + +2.04 +H: 0 +M: 0.23 +L: 0.37 + +3.44 +H: 0.1 +M: 0.32 +L: 0.1 + +5.3 +H: 0.44 +M: 0.16 +L: 0 + +5.42 +H: 0.46 +M: 0.14 +L: 0 + + +0 +100 +200 + + + + + + + +pred +cyl +carb +wt +count +Presented Variables account for 80.5 % of Variable Importance +Model Response Plot +Variables not shown have been set to median or mode: gear: 3; gear: 4; gear: 5; am: automatic; am: automatic; am: automatic; qsec: 17.71; qsec: 17.71; qsec: 17.71; vs: V; vs: V; +vs: V; mpg: 19.2; mpg: 19.2; mpg: 19.2; drat: 3.695; drat: 3.695; drat: 3.695; hp: 123; hp: 123; hp: 123 + + diff --git a/tests/testthat/_snaps/alluvial_model_response/model-response-new-change-bins-7.svg b/tests/testthat/_snaps/alluvial_model_response/model-response-new-change-bins-7.svg new file mode 100644 index 0000000..a220ac3 --- /dev/null +++ b/tests/testthat/_snaps/alluvial_model_response/model-response-new-change-bins-7.svg @@ -0,0 +1,1342 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +LLL +(-94.4,98.1] + +LL +(98.1,144] + +ML +(144,203] + +M +(203,254] + +MH +(254,317] + +HH +(317,409] + +HHH +(409,466] + +4 +HHH: 0 +HH: 0.08 +MH: 0.38 +M: 0.27 +ML: 0.42 +LL: 0.17 +LLL: 0.55 + +6 +HHH: 0 +HH: 0.41 +MH: 0.3 +M: 0.43 +ML: 0.17 +LL: 0.53 +LLL: 0.32 + +8 +HHH: 1 +HH: 0.51 +MH: 0.32 +M: 0.3 +ML: 0.4 +LL: 0.3 +LLL: 0.12 + +1 +HHH: 0.31 +HH: 0.26 +MH: 0.19 +M: 0.11 +ML: 0.22 +LL: 0.17 +LLL: 0.08 + +2 +HHH: 0.38 +HH: 0.26 +MH: 0.16 +M: 0.16 +ML: 0.17 +LL: 0.17 +LLL: 0.08 + +3 +HHH: 0 +HH: 0.1 +MH: 0.16 +M: 0.22 +ML: 0.1 +LL: 0.2 +LLL: 0.23 + +4 +HHH: 0.31 +HH: 0.15 +MH: 0.27 +M: 0.11 +ML: 0.17 +LL: 0.17 +LLL: 0.12 + +6 +HHH: 0 +HH: 0.15 +MH: 0.11 +M: 0.22 +ML: 0.15 +LL: 0.17 +LLL: 0.22 + +8 +HHH: 0 +HH: 0.08 +MH: 0.11 +M: 0.19 +ML: 0.17 +LL: 0.13 +LLL: 0.27 + +1.51 +HHH: 0 +HH: 0 +MH: 0 +M: 0.03 +ML: 0.17 +LL: 0.27 +LLL: 0.51 + +2.04 +HHH: 0 +HH: 0 +MH: 0 +M: 0.14 +ML: 0.17 +LL: 0.47 +LLL: 0.38 + +3.44 +HHH: 0 +HH: 0.05 +MH: 0.19 +M: 0.32 +ML: 0.42 +LL: 0.27 +LLL: 0.11 + +5.3 +HHH: 0.46 +HH: 0.46 +MH: 0.41 +M: 0.27 +ML: 0.12 +LL: 0 +LLL: 0 + +5.42 +HHH: 0.54 +HH: 0.49 +MH: 0.41 +M: 0.24 +ML: 0.1 +LL: 0 +LLL: 0 + +3 +HHH: 0.46 +HH: 0.44 +MH: 0.24 +M: 0.43 +ML: 0.28 +LL: 0.43 +LLL: 0.24 + +4 +HHH: 0.08 +HH: 0.28 +MH: 0.38 +M: 0.22 +ML: 0.45 +LL: 0.23 +LLL: 0.42 + +5 +HHH: 0.46 +HH: 0.28 +MH: 0.38 +M: 0.35 +ML: 0.28 +LL: 0.33 +LLL: 0.34 + + +0 +100 +200 + + + + + + + + +pred +cyl +carb +wt +gear +count +Presented Variables account for 90.4 % of Variable Importance +Model Response Plot +Variables not shown have been set to median or mode: am: automatic; qsec: 17.71; vs: V; mpg: 19.2; drat: 3.695; hp: 123 + + diff --git a/tests/testthat/_snaps/alluvial_model_response/model-response-new-labs.svg b/tests/testthat/_snaps/alluvial_model_response/model-response-new-labs.svg new file mode 100644 index 0000000..ba094c3 --- /dev/null +++ b/tests/testthat/_snaps/alluvial_model_response/model-response-new-labs.svg @@ -0,0 +1,560 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +A +(-94.4,14.4] + +B +(14.4,126] + +C +(126,236] + +D +(236,348] + +E +(348,461] + +4 +E: 0 +D: 0.28 +C: 0.34 +B: 0.39 +A: 0.69 + +6 +E: 0.28 +D: 0.36 +C: 0.29 +B: 0.39 +A: 0.31 + +8 +E: 0.72 +D: 0.36 +C: 0.37 +B: 0.22 +A: 0 + +1 +E: 0.31 +D: 0.18 +C: 0.17 +B: 0.14 +A: 0 + +2 +E: 0.31 +D: 0.19 +C: 0.16 +B: 0.14 +A: 0 + +3 +E: 0.06 +D: 0.12 +C: 0.18 +B: 0.17 +A: 0.35 + +4 +E: 0.22 +D: 0.21 +C: 0.17 +B: 0.14 +A: 0.04 + +6 +E: 0.09 +D: 0.16 +C: 0.14 +B: 0.2 +A: 0.23 + +8 +E: 0 +D: 0.13 +C: 0.17 +B: 0.19 +A: 0.38 + +1.51 +E: 0 +D: 0 +C: 0.12 +B: 0.42 +A: 0.62 + +2.04 +E: 0 +D: 0.01 +C: 0.21 +B: 0.39 +A: 0.38 + +3.44 +E: 0 +D: 0.18 +C: 0.38 +B: 0.19 +A: 0 + +5.3 +E: 0.47 +D: 0.4 +C: 0.16 +B: 0 +A: 0 + +5.42 +E: 0.53 +D: 0.4 +C: 0.13 +B: 0 +A: 0 + + +0 +100 +200 + + + + + + + +pred +cyl +carb +wt +count +Presented Variables account for 80.5 % of Variable Importance +Model Response Plot +Variables not shown have been set to median or mode: gear: 3; gear: 4; gear: 5; am: automatic; am: automatic; am: automatic; qsec: 17.71; qsec: 17.71; qsec: 17.71; vs: V; vs: V; +vs: V; mpg: 19.2; mpg: 19.2; mpg: 19.2; drat: 3.695; drat: 3.695; drat: 3.695; hp: 123; hp: 123; hp: 123 + + diff --git a/tests/testthat/_snaps/alluvial_model_response/model-response-pdb-non-binary.svg b/tests/testthat/_snaps/alluvial_model_response/model-response-pdb-non-binary.svg new file mode 100644 index 0000000..9e3d24c --- /dev/null +++ b/tests/testthat/_snaps/alluvial_model_response/model-response-pdb-non-binary.svg @@ -0,0 +1,538 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +4 + +6 + +8 + +71.1 +8: 0.09 +6: 0.47 +4: 0.31 + +120.7 +8: 0.08 +6: 0.53 +4: 0.31 + +275.8 +8: 0.28 +6: 0 +4: 0.12 + +360 +8: 0.28 +6: 0 +4: 0.12 + +472 +8: 0.28 +6: 0 +4: 0.12 + +10.4 +8: 0.28 +6: 0.24 +4: 0 + +14.7 +8: 0.28 +6: 0.24 +4: 0 + +19.4 +8: 0.21 +6: 0.53 +4: 0 + +30.4 +8: 0.12 +6: 0 +4: 0.5 + +33.9 +8: 0.12 +6: 0 +4: 0.5 + +52 +8: 0.12 +6: 0.35 +4: 0.31 + +78.5 +8: 0.12 +6: 0.35 +4: 0.31 + +150 +8: 0.25 +6: 0.12 +4: 0.12 + +245 +8: 0.25 +6: 0.12 +4: 0.12 + +335 +8: 0.26 +6: 0.06 +4: 0.12 + + +0 +40 +80 +120 + + + + + + + + +pred +disp +mpg +hp +count +Presented Variables account for 68 % of Variable Importance +Partial Dependence Alluvial Plot +Indicated values replace corresponding values in training data set. For each unique combination predictions from entire training data set were averaged. + + diff --git a/tests/testthat/_snaps/alluvial_model_response/model-response-pdb.svg b/tests/testthat/_snaps/alluvial_model_response/model-response-pdb.svg new file mode 100644 index 0000000..75a257c --- /dev/null +++ b/tests/testthat/_snaps/alluvial_model_response/model-response-pdb.svg @@ -0,0 +1,414 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +LL +(154,190] + +ML +(190,219] + +M +(219,257] + +MH +(257,294] + +HH +(294,339] + +4 +HH: 0 +MH: 0.2 +M: 0.29 +ML: 0.5 +LL: 0.6 + +6 +HH: 0 +MH: 0.25 +M: 0.35 +ML: 0.5 +LL: 0.4 + +8 +HH: 1 +MH: 0.55 +M: 0.35 +ML: 0 +LL: 0 + +10.4 +HH: 0.38 +MH: 0.35 +M: 0.18 +ML: 0.1 +LL: 0 + +14.7 +HH: 0.38 +MH: 0.3 +M: 0.12 +ML: 0.2 +LL: 0 + +19.4 +HH: 0.25 +MH: 0.05 +M: 0.47 +ML: 0.1 +LL: 0.2 + +30.4 +HH: 0 +MH: 0.15 +M: 0.12 +ML: 0.3 +LL: 0.4 + +33.9 +HH: 0 +MH: 0.15 +M: 0.12 +ML: 0.3 +LL: 0.4 + +52 +HH: 0 +MH: 0.1 +M: 0.24 +ML: 0.2 +LL: 0.5 + +78.5 +HH: 0 +MH: 0.1 +M: 0.24 +ML: 0.2 +LL: 0.5 + +150 +HH: 0.25 +MH: 0.2 +M: 0.29 +ML: 0.2 +LL: 0 + +245 +HH: 0.38 +MH: 0.3 +M: 0.12 +ML: 0.2 +LL: 0 + +335 +HH: 0.38 +MH: 0.3 +M: 0.12 +ML: 0.2 +LL: 0 + + +0 +20 +40 +60 + + + + + + + + +pred +cyl +mpg +hp +count +Presented Variables account for 59.7 % of Variable Importance +Partial Dependence Alluvial Plot +Indicated values replace corresponding values in training data set. For each unique combination predictions from entire training data set were averaged. + + diff --git a/tests/testthat/_snaps/alluvial_model_response/model-response.svg b/tests/testthat/_snaps/alluvial_model_response/model-response.svg new file mode 100644 index 0000000..8be51cd --- /dev/null +++ b/tests/testthat/_snaps/alluvial_model_response/model-response.svg @@ -0,0 +1,414 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +LL +(176,212] + +ML +(212,242] + +M +(242,276] + +MH +(276,324] + +HH +(324,363] + +4 +HH: 0 +MH: 0.22 +M: 0.33 +ML: 0.42 +LL: 0.6 + +6 +HH: 0 +MH: 0.22 +M: 0.5 +ML: 0.42 +LL: 0.4 + +8 +HH: 1 +MH: 0.57 +M: 0.17 +ML: 0.17 +LL: 0 + +10.4 +HH: 0.5 +MH: 0.35 +M: 0.17 +ML: 0.08 +LL: 0 + +14.7 +HH: 0.5 +MH: 0.26 +M: 0.17 +ML: 0.17 +LL: 0 + +19.4 +HH: 0 +MH: 0.13 +M: 0.67 +ML: 0.08 +LL: 0.2 + +30.4 +HH: 0 +MH: 0.13 +M: 0 +ML: 0.33 +LL: 0.4 + +33.9 +HH: 0 +MH: 0.13 +M: 0 +ML: 0.33 +LL: 0.4 + +52 +HH: 0 +MH: 0.09 +M: 0.17 +ML: 0.25 +LL: 0.5 + +78.5 +HH: 0 +MH: 0.09 +M: 0.17 +ML: 0.25 +LL: 0.5 + +150 +HH: 0.33 +MH: 0.22 +M: 0.33 +ML: 0.17 +LL: 0 + +245 +HH: 0.33 +MH: 0.3 +M: 0.17 +ML: 0.17 +LL: 0 + +335 +HH: 0.33 +MH: 0.3 +M: 0.17 +ML: 0.17 +LL: 0 + + +0 +20 +40 +60 + + + + + + + + +pred +cyl +mpg +hp +count +Presented Variables account for 59.7 % of Variable Importance +Model Response Plot +Variables not shown have been set to median or mode: wt: 3.325; drat: 3.695; gear: 3; qsec: 17.71; vs: V; carb: 4; am: automatic + + diff --git a/tests/testthat/_snaps/alluvial_wide/wide-all-flows.svg b/tests/testthat/_snaps/alluvial_wide/wide-all-flows.svg new file mode 100644 index 0000000..d821612 --- /dev/null +++ b/tests/testthat/_snaps/alluvial_wide/wide-all-flows.svg @@ -0,0 +1,233 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +LL + +ML + +M + +MH + +HH + +4 + +6 + +8 + +LL + +ML + +M + +MH + +HH + +LL + +ML + +M + +MH + +HH + +LL + +ML + +M + +MH + +HH + + +0 +10 +20 +30 + + + + + + + + + +mpg +cyl +disp +hp +drat +count +wide_all_flows +Number of flows: 24 +Original Dataframe reduced to 75 % +Maximum weight of a single flow 9.4 % + + diff --git a/tests/testthat/_snaps/alluvial_wide/wide-first.svg b/tests/testthat/_snaps/alluvial_wide/wide-first.svg new file mode 100644 index 0000000..0f10769 --- /dev/null +++ b/tests/testthat/_snaps/alluvial_wide/wide-first.svg @@ -0,0 +1,233 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +LL + +ML + +M + +MH + +HH + +4 + +6 + +8 + +LL + +ML + +M + +MH + +HH + +LL + +ML + +M + +MH + +HH + +LL + +ML + +M + +MH + +HH + + +0 +10 +20 +30 + + + + + + + + + +mpg +cyl +disp +hp +drat +count +wide_first +Number of flows: 24 +Original Dataframe reduced to 75 % +Maximum weight of a single flow 9.4 % + + diff --git a/tests/testthat/_snaps/alluvial_wide/wide-islr-cars-rotate-labels.svg b/tests/testthat/_snaps/alluvial_wide/wide-islr-cars-rotate-labels.svg new file mode 100644 index 0000000..1eea55a --- /dev/null +++ b/tests/testthat/_snaps/alluvial_wide/wide-islr-cars-rotate-labels.svg @@ -0,0 +1,459 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +LL + +ML + +M + +MH + +HH + +3 + +4 + +5 + +6 + +8 + +LL + +ML + +M + +MH + +HH + +LL + +ML + +M + +MH + +HH + +LL + +ML + +M + +MH + +HH + + +0 +100 +200 +300 +400 + + + + + + + + + + +mpg +cylinders +displacement +horsepower +weight +count +wide_ISLR_cars_rotate_labels +Number of flows: 78 +Original Dataframe reduced to 19.9 % +Maximum weight of a single flow 6.6 % + + diff --git a/tests/testthat/_snaps/alluvial_wide/wide-islr-cars.svg b/tests/testthat/_snaps/alluvial_wide/wide-islr-cars.svg new file mode 100644 index 0000000..f94ddfe --- /dev/null +++ b/tests/testthat/_snaps/alluvial_wide/wide-islr-cars.svg @@ -0,0 +1,459 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +LL + +ML + +M + +MH + +HH + +3 + +4 + +5 + +6 + +8 + +LL + +ML + +M + +MH + +HH + +LL + +ML + +M + +MH + +HH + +LL + +ML + +M + +MH + +HH + + +0 +100 +200 +300 +400 + + + + + + + + + + +mpg +cylinders +displacement +horsepower +weight +count +wide_ISLR_cars +Number of flows: 78 +Original Dataframe reduced to 19.9 % +Maximum weight of a single flow 6.6 % + + diff --git a/tests/testthat/_snaps/alluvial_wide/wide-last.svg b/tests/testthat/_snaps/alluvial_wide/wide-last.svg new file mode 100644 index 0000000..13765c1 --- /dev/null +++ b/tests/testthat/_snaps/alluvial_wide/wide-last.svg @@ -0,0 +1,233 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +LL + +ML + +M + +MH + +HH + +4 + +6 + +8 + +LL + +ML + +M + +MH + +HH + +LL + +ML + +M + +MH + +HH + +LL + +ML + +M + +MH + +HH + + +0 +10 +20 +30 + + + + + + + + + +mpg +cyl +disp +hp +drat +count +wide_last +Number of flows: 24 +Original Dataframe reduced to 75 % +Maximum weight of a single flow 9.4 % + + diff --git a/tests/testthat/_snaps/alluvial_wide/wide-reorder-y-levels.svg b/tests/testthat/_snaps/alluvial_wide/wide-reorder-y-levels.svg new file mode 100644 index 0000000..b51c175 --- /dev/null +++ b/tests/testthat/_snaps/alluvial_wide/wide-reorder-y-levels.svg @@ -0,0 +1,233 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +LL + +ML + +M + +MH + +HH + +8 + +4 + +6 + +LL + +ML + +M + +MH + +HH + +LL + +ML + +M + +MH + +HH + +LL + +ML + +M + +MH + +HH + + +0 +10 +20 +30 + + + + + + + + + +mpg +cyl +disp +hp +drat +count +wide_reorder_y_levels +Number of flows: 24 +Original Dataframe reduced to 75 % +Maximum weight of a single flow 9.4 % + + diff --git a/tests/testthat/_snaps/alluvial_wide/wide-values.svg b/tests/testthat/_snaps/alluvial_wide/wide-values.svg new file mode 100644 index 0000000..cb5fab2 --- /dev/null +++ b/tests/testthat/_snaps/alluvial_wide/wide-values.svg @@ -0,0 +1,233 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +LL + +ML + +M + +MH + +HH + +4 + +6 + +8 + +LL + +ML + +M + +MH + +HH + +LL + +ML + +M + +MH + +HH + +LL + +ML + +M + +MH + +HH + + +0 +10 +20 +30 + + + + + + + + + +mpg +cyl +disp +hp +drat +count +wide_values +Number of flows: 24 +Original Dataframe reduced to 75 % +Maximum weight of a single flow 9.4 % + + diff --git a/tests/testthat/_snaps/plot_condensation/cond-price-first.svg b/tests/testthat/_snaps/plot_condensation/cond-price-first.svg new file mode 100644 index 0000000..7eac59d --- /dev/null +++ b/tests/testthat/_snaps/plot_condensation/cond-price-first.svg @@ -0,0 +1,182 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +percent condensation + + + + + + + + + +number of flows + + +price +carat +price +carat +x +price +carat +x +y +price +carat +x +y +z +price +carat +x +y +z +depth +price +carat +x +y +z +depth +cut +price +carat +x +y +z +depth +cut +table +price +carat +x +y +z +depth +cut +table +clarity +price +carat +x +y +z +depth +cut +table +clarity +color +0 +5000 +10000 +15000 +0.0 +0.1 +0.2 +0.3 +0.4 +0.5 +cond_price_first + + diff --git a/tests/testthat/_snaps/plot_condensation/cond-with-first.svg b/tests/testthat/_snaps/plot_condensation/cond-with-first.svg new file mode 100644 index 0000000..51513e3 --- /dev/null +++ b/tests/testthat/_snaps/plot_condensation/cond-with-first.svg @@ -0,0 +1,190 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +percent condensation + + + + + + + + + +number of flows + + +disp +cyl +disp +cyl +vs +disp +cyl +vs +am +disp +cyl +vs +am +gear +disp +cyl +vs +am +gear +hp +disp +cyl +vs +am +gear +hp +mpg +disp +cyl +vs +am +gear +hp +mpg +wt +disp +cyl +vs +am +gear +hp +mpg +wt +qsec +disp +cyl +vs +am +gear +hp +mpg +wt +qsec +carb +disp +cyl +vs +am +gear +hp +mpg +wt +qsec +carb +drat +0 +10 +20 +30 +0.00 +0.25 +0.50 +0.75 +cond_with_first + + diff --git a/tests/testthat/_snaps/plot_condensation/cond.svg b/tests/testthat/_snaps/plot_condensation/cond.svg new file mode 100644 index 0000000..77d5d57 --- /dev/null +++ b/tests/testthat/_snaps/plot_condensation/cond.svg @@ -0,0 +1,190 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +percent condensation + + + + + + + + + +number of flows + + +am +gear +am +gear +vs +am +gear +vs +cyl +am +gear +vs +cyl +disp +am +gear +vs +cyl +disp +hp +am +gear +vs +cyl +disp +hp +mpg +am +gear +vs +cyl +disp +hp +mpg +wt +am +gear +vs +cyl +disp +hp +mpg +wt +qsec +am +gear +vs +cyl +disp +hp +mpg +wt +qsec +carb +am +gear +vs +cyl +disp +hp +mpg +wt +qsec +carb +drat +0 +10 +20 +30 +0.00 +0.25 +0.50 +0.75 +cond + + diff --git a/tests/testthat/_snaps/plot_imp/plot-imp.new.svg b/tests/testthat/_snaps/plot_imp/plot-imp.new.svg new file mode 100644 index 0000000..b82ec09 --- /dev/null +++ b/tests/testthat/_snaps/plot_imp/plot-imp.new.svg @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +0.189 +0.147 +0.14 +0.134 +0.101 +0.098 +0.065 +0.057 +0.055 +0.014 +0.476 + +19.2 + +4 + +3.695 + +3 + +V + +17.71 + +automatic + + +0.00 +0.25 +0.50 +0.75 +1.00 +am +qsec +vs +gear +drat +carb +mpg +wt +hp +cyl +total +alluvial +Percent Importance +plot_imp + + diff --git a/tests/testthat/_snaps/plot_imp/plot-imp.svg b/tests/testthat/_snaps/plot_imp/plot-imp.svg new file mode 100644 index 0000000..bf7144f --- /dev/null +++ b/tests/testthat/_snaps/plot_imp/plot-imp.svg @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +0.234 +0.157 +0.15 +0.148 +0.12 +0.067 +0.051 +0.045 +0.028 +0 +0.541 + +123 + +3.695 + +4 + +3 + +V + +17.71 + +automatic + + +0.00 +0.25 +0.50 +0.75 +1.00 +am +qsec +vs +gear +carb +drat +hp +mpg +wt +cyl +total +alluvial +Percent Importance +plot_imp + + diff --git a/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred-train.new.svg b/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred-train.new.svg new file mode 100644 index 0000000..454ecb2 --- /dev/null +++ b/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred-train.new.svg @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +cyl + + + + + + + + + + +pred_train + + + + + + + + + + +pred + + +4 +6 +8 +4 +6 +8 +4 +6 +8 +mod_cat_pred_train + + diff --git a/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred-train.svg b/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred-train.svg new file mode 100644 index 0000000..4da40f5 --- /dev/null +++ b/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred-train.svg @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +cyl + + + + + + + + + + +pred_train + + + + + + + + + + +pred + + +4 +6 +8 +4 +6 +8 +4 +6 +8 +mod_cat_pred_train + + diff --git a/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred.new.svg b/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred.new.svg new file mode 100644 index 0000000..434399f --- /dev/null +++ b/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred.new.svg @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +cyl + + + + + + + + + + +pred + + +4 +6 +8 +4 +6 +8 +mod_cat_pred + + diff --git a/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred.svg b/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred.svg new file mode 100644 index 0000000..fa84a4f --- /dev/null +++ b/tests/testthat/_snaps/plot_marginal_histograms/mod-cat-pred.svg @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +cyl + + + + + + + + + + +pred + + +4 +6 +8 +4 +6 +8 +mod_cat_pred + + diff --git a/tests/testthat/_snaps/plot_marginal_histograms/mod-num-cat.svg b/tests/testthat/_snaps/plot_marginal_histograms/mod-num-cat.svg new file mode 100644 index 0000000..7a350ca --- /dev/null +++ b/tests/testthat/_snaps/plot_marginal_histograms/mod-num-cat.svg @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +1 +2 +3 +4 +6 +8 +mod_num_cat + + diff --git a/tests/testthat/_snaps/plot_marginal_histograms/mod-num-num.svg b/tests/testthat/_snaps/plot_marginal_histograms/mod-num-num.svg new file mode 100644 index 0000000..de30d51 --- /dev/null +++ b/tests/testthat/_snaps/plot_marginal_histograms/mod-num-num.svg @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +2 +3 +4 +5 +mod_num_num + + diff --git a/tests/testthat/_snaps/plot_marginal_histograms/mod-num-pred-train.svg b/tests/testthat/_snaps/plot_marginal_histograms/mod-num-pred-train.svg new file mode 100644 index 0000000..5bc26b2 --- /dev/null +++ b/tests/testthat/_snaps/plot_marginal_histograms/mod-num-pred-train.svg @@ -0,0 +1,175 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +pred +pred_train +disp +0 +250 +500 +mod_num_pred_train + + diff --git a/tests/testthat/_snaps/plot_marginal_histograms/mod-num-pred.svg b/tests/testthat/_snaps/plot_marginal_histograms/mod-num-pred.svg new file mode 100644 index 0000000..b18f5c4 --- /dev/null +++ b/tests/testthat/_snaps/plot_marginal_histograms/mod-num-pred.svg @@ -0,0 +1,168 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +pred +disp +0 +250 +500 +mod_num_pred + + diff --git a/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-cat-fill.svg b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-cat-fill.svg new file mode 100644 index 0000000..401a273 --- /dev/null +++ b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-cat-fill.svg @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +9E +AA +AS +B6 +DL +EV +F9 +FL +HA +MQ +UA +US +VX +plot_hist_long_cat_fill + + diff --git a/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-cat.svg b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-cat.svg new file mode 100644 index 0000000..f745d79 --- /dev/null +++ b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-cat.svg @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + +late +on_time +plot_hist_long_cat + + diff --git a/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-num-has-fill.svg b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-num-has-fill.svg new file mode 100644 index 0000000..a354251 --- /dev/null +++ b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-num-has-fill.svg @@ -0,0 +1,288 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +0 +50 +100 +150 +200 +plot_hist_long_num_has_fill + + diff --git a/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-num-is-fill.svg b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-num-is-fill.svg new file mode 100644 index 0000000..67f105f --- /dev/null +++ b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-num-is-fill.svg @@ -0,0 +1,991 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +0 +100 +200 +plot_hist_long_num_is_fill + + diff --git a/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-num.svg b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-num.svg new file mode 100644 index 0000000..026d579 --- /dev/null +++ b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-long-num.svg @@ -0,0 +1,288 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +0 +50 +100 +150 +200 +plot_hist_long_num + + diff --git a/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-wide-cat.svg b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-wide-cat.svg new file mode 100644 index 0000000..bdcaa23 --- /dev/null +++ b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-wide-cat.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + +4 +6 +8 +plot_hist_wide_cat + + diff --git a/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-wide-num.svg b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-wide-num.svg new file mode 100644 index 0000000..a19886e --- /dev/null +++ b/tests/testthat/_snaps/plot_marginal_histograms/plot-hist-wide-num.svg @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +0 +200 +400 +600 +plot_hist_wide_num + + diff --git a/tests/testthat/test_plot_imp.R b/tests/testthat/test_plot_imp.R index a3b08fb..31bd196 100644 --- a/tests/testthat/test_plot_imp.R +++ b/tests/testthat/test_plot_imp.R @@ -17,7 +17,9 @@ test_that('plot_imp' p_imp = plot_imp(p, df) - expect_doppelganger('plot_imp', p_imp) + # we do not test snapshot, feature importance + # is not stable for different versions of R and used packages + expect_true( 'ggplot' %in% class(p_imp) ) }) diff --git a/tests/testthat/test_plot_marginal_histograms.R b/tests/testthat/test_plot_marginal_histograms.R index 0490e32..929c1bc 100644 --- a/tests/testthat/test_plot_marginal_histograms.R +++ b/tests/testthat/test_plot_marginal_histograms.R @@ -132,13 +132,21 @@ test_that("plot_hist_margins_model_respons" ,{ p_mod_cat = alluvial_model_response_caret(train, df, degree = 3) p = plot_hist('pred', p_mod_cat, df, pred_train = predict(train, mtcars2)) - expect_doppelganger('mod_cat_pred_train', p) + # not stable across R and package versions + # expect_doppelganger('mod_cat_pred_train', p) + + expect_true("ggplot" %in% class(p)) p = plot_hist('pred', p_mod_cat, df ) - expect_doppelganger('mod_cat_pred', p) + # not stable across R and package versions + # expect_doppelganger('mod_cat_pred', p) + + expect_true("ggplot" %in% class(p)) p_grid = add_marginal_histograms(p_mod_cat, df, keep_labels = T, pred_train = predict(train, mtcars2), plot = F ) - + + expect_true("gtable" %in% class(p_grid)) + # gtables not yet supported by vdiffr # expect_doppelganger('marg_hist_mod_cat_pred_train', p_grid) diff --git a/vignettes/data_exploration.Rmd b/vignettes/data_exploration.Rmd index 33b4d1c..43aa308 100644 --- a/vignettes/data_exploration.Rmd +++ b/vignettes/data_exploration.Rmd @@ -24,7 +24,11 @@ Alluvial plots are a form of [sankey diagrams](https://en.wikipedia.org/wiki/San ```{r} suppressPackageStartupMessages( require(easyalluvial) ) -suppressPackageStartupMessages( require(tidyverse) ) +suppressPackageStartupMessages( require(tibble) ) +suppressPackageStartupMessages( require(dplyr) ) +suppressPackageStartupMessages( require(ggplot2) ) +suppressPackageStartupMessages( require(forcats) ) +suppressPackageStartupMessages( require(purrr) ) ``` diff --git a/vignettes/model_response.Rmd b/vignettes/model_response.Rmd index ca52b73..147562c 100644 --- a/vignettes/model_response.Rmd +++ b/vignettes/model_response.Rmd @@ -9,12 +9,14 @@ editor_options: --- ```{r} -suppressPackageStartupMessages( library(tidyverse) ) +suppressPackageStartupMessages( library(dplyr) ) suppressPackageStartupMessages( library(easyalluvial) ) suppressPackageStartupMessages( library(mlbench) ) suppressPackageStartupMessages( library(randomForest) ) suppressPackageStartupMessages( library(recipes) ) suppressPackageStartupMessages( library(earth) ) +suppressPackageStartupMessages( library(parcats) ) + ``` diff --git a/vignettes/parcats.Rmd b/vignettes/parcats.Rmd index 1e1ee22..bbce501 100644 --- a/vignettes/parcats.Rmd +++ b/vignettes/parcats.Rmd @@ -21,7 +21,7 @@ install.packages('parcats') ## Examples ```{r} -suppressPackageStartupMessages( require(tidyverse) ) +suppressPackageStartupMessages( require(dplyr) ) suppressPackageStartupMessages( require(easyalluvial) ) suppressPackageStartupMessages( require(parcats) )