Package: DImodelsVis 1.0.4

Rishabh Vishwakarma

DImodelsVis: Visualising and Interpreting Statistical Models Fit to Compositional Data

Statistical models fit to compositional data are often difficult to interpret due to the sum to 1 constraint on data variables. 'DImodelsVis' provides novel visualisations tools to aid with the interpretation of models fit to compositional data. All visualisations in the package are created using the 'ggplot2' plotting framework and can be extended like every other 'ggplot' object.

Authors:Rishabh Vishwakarma [aut, cre], Caroline Brophy [aut], Laura Byrne [aut], Catherine Hurley [aut]

DImodelsVis_1.0.4.tar.gz
DImodelsVis_1.0.4.zip(r-4.7)DImodelsVis_1.0.4.zip(r-4.6)DImodelsVis_1.0.4.zip(r-4.5)
DImodelsVis_1.0.4.tgz(r-4.6-any)DImodelsVis_1.0.4.tgz(r-4.5-any)
DImodelsVis_1.0.4.tar.gz(r-4.7-any)DImodelsVis_1.0.4.tar.gz(r-4.6-any)
DImodelsVis_1.0.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
DImodelsVis/json (API)
NEWS

# Install 'DImodelsVis' in R:
install.packages('DImodelsVis', repos = c('https://rishvish.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/rishvish/dimodelsvis/issues

Pkgdown/docs site:https://rishvish.github.io

On CRAN:

Conda:

5.18 score 20 scripts 276 downloads 39 exports 111 dependencies

Last updated from:cc200d979d. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK296
source / vignettesOK301
linux-release-x86_64OK287
macos-release-arm64OK225
macos-oldrel-arm64OK352
windows-develOK259
windows-releaseOK244
windows-oldrelOK260
wasm-releaseOK158

Exports:add_add_varadd_ID_termsadd_interaction_termsadd_predictionconditional_ternaryconditional_ternary_dataconditional_ternary_plotcopy_attributescustom_filterget_coloursget_equi_commsget_shadesgradient_changegradient_change_datagradient_change_plotgroup_propgrouped_ternarygrouped_ternary_datagrouped_ternary_plotmodel_diagnosticsmodel_diagnostics_datamodel_diagnostics_plotmodel_selectionmodel_selection_datamodel_selection_plotprediction_contributionsprediction_contributions_dataprediction_contributions_plotprop_to_tern_projsimplex_pathsimplex_path_datasimplex_path_plottern_to_prop_projternary_dataternary_plottheme_DIvisualise_effectsvisualise_effects_datavisualise_effects_plot

Dependencies:backportsbase64encbslibcachemcheckmateclassclassIntclicodetoolscolorspacecommonmarkcpp11curldata.tableDBIdigestDImodelsdplyre1071evaluatefarverfastmapfontawesomefontBitstreamVerafontLiberationfontquiverforcatsFormulaformula.toolsfsgdtoolsgenericsggforceggfortifyggiraphggplot2ggtextgluegridExtragridtextgtablehighrhnphtmltoolshtmlwidgetsinsightisobandjpegjquerylibjsonliteKernSmoothknitrlabelinglatticelifecyclelitedownlubridatemagrittrmarkdownMASSMatrixmemoisemetRmimemultcompmultcompViewmvtnormoperator.toolsPieGlyphpillarpkgconfigplotwidgetsplyrpngpolyclipproxypurrrR6rappdirsRColorBrewerRcpprlangrmarkdownrootSolves2S7sandwichsassscalessfstringistringrsurvivalsystemfontsTH.datatibbletidyrtidyselecttimechangetinytextweenrunitsutf8vctrsviridisLitewithrwkxfunxml2yamlzoo

DImodelsVis with black-box models

Rendered fromDImodelsVis-with-black-box-models.Rmdusingknitr::rmarkdownon May 09 2026.

Last update: 2025-10-09
Started: 2025-10-03

DImodelsVis with regression models fit using the DImodelsMulti R package

Rendered fromDImodelsVis-with-DImodelsMulti-models.Rmdusingknitr::rmarkdownon May 09 2026.

Last update: 2025-10-09
Started: 2025-07-18

DImodelsVis with regression models not fit using the DImodels package

Rendered fromDImodelsVis-with-complex-models.Rmdusingknitr::rmarkdownon May 09 2026.

Last update: 2025-10-09
Started: 2024-01-29

Readme and manuals

Help Manual

Help pageTopics
Add additional variables to data via cartesian productadd_add_var
Add identity and interaction terms used in a Diversity-Interactions (DI) model to new dataadd_ID_terms add_interaction_terms
Add predictions and uncertainty interval to data using either a model object or model coefficients.add_prediction
DI specific wrapper for conditional ternary diagramsconditional_ternary
Data preparation for conditional ternary diagramsconditional_ternary_data
Conditional ternary diagramsconditional_ternary_plot
Copy attributes from one object to anothercopy_attributes
Special custom filtering for compositional datacustom_filter
Return colour-blind friendly coloursget_colours
Get all equi-proportional communities at specific levels of richnessget_equi_comms
Returns shades of coloursget_shades
DI specific wrapper for visualising change in response over diversity gradientgradient_change
Data preparation for visualising change in response over diversity gradientgradient_change_data
Visualise change in response over diversity gradientgradient_change_plot
Combine variable proportions into groupsgroup_prop
DI specific wrapper for grouped ternary diagramsgrouped_ternary
Prepare data for grouped ternary diagramsgrouped_ternary_data
Grouped ternary diagramsgrouped_ternary_plot
DI specific wrapper of diagnostics plots for regression models with compositional predictorsmodel_diagnostics
Data preparation of diagnostics plots for regression models with compositional predictorsmodel_diagnostics_data
Diagnostics plots for regression models with compositional predictorsmodel_diagnostics_plot
DI specific wrapper for visualising model selectionmodel_selection
Prepare data for visualising model selectionmodel_selection_data
Visualise model selectionmodel_selection_plot
Model term contributions to predicted responseprediction_contributions
Model term contributions to predicted responseprediction_contributions_data
Visualise model term contributions to predicted responseprediction_contributions_plot
Project 3-d compositional data onto x-y plane and vice versaprop_to_tern_proj tern_to_prop_proj
DI specific for visualising change in response across points in the simplex spacesimplex_path
Prepare data for visualising change in response across points in the simplex spacesimplex_path_data
Visualising change in response across points in the simplex spacesimplex_path_plot
Prepare data for showing contours in ternary diagrams.ternary_data
Ternary diagramsternary_plot
Default theme for DImodelsVistheme_DI
DI specific wrapper of effects plot for compositional variablesvisualise_effects
Prepare data for effects plots of compositional predictorsvisualise_effects_data
Effects plot for compositional predictorsvisualise_effects_plot