Package: DImodelsVis 1.0.5

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.5.tar.gz
DImodelsVis_1.0.5.tar.gz(r-4.7-any)DImodelsVis_1.0.5.tar.gz(r-4.6-any)
DImodelsVis_1.0.5.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
DImodelsVis/json (API)

# Install 'DImodelsVis' in R:
install.packages('DImodelsVis', repos = c('https://cran.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:

4.01 score 23 scripts 285 downloads 39 exports 111 dependencies

Last updated from:01d2c573ff. Checks:4 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK316
source / vignettesOK351
linux-release-x86_64OK298
wasm-releaseOK204

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
Loading necessary packages | Data | Visualising raw data | Neural network | Visualise response surface across ternary | Effects plots for the compositional predictors | Random forest model | Response surface across ternary using random forests

Last update: 2026-06-29
Started: 2025-10-08

DImodelsVis with regression models fit using the DImodelsMulti R package
Loading necessary packages | Data exploration | Load data | Model fitting | Model diagnostics | Model interpretation | Gradient-change plot | Conditional ternary plot | Grouped ternary plot | Effects plot | Simplex path plot | Prediction contributions plot

Last update: 2026-06-29
Started: 2025-08-22

DImodelsVis with regression models not fit using the DImodels package
Loading necessary packages | Load data | Model fitting | Fitting the model | Visualisations | Model diagnostics plot | Prediction contributions | Conditional ternary diagrams | Grouped ternary diagrams | Simplex path plot | Effect plots

Last update: 2025-10-08
Started: 2024-02-20

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