Spatial Implementation of Bayesian Networks and Mapping

Allows spatial implementation of Bayesian networks and mapping in geographical space. It makes maps of expected value (or most likely state) given known and unknown conditions, maps of uncertainty measured as coefficient of variation or Shannon index (entropy), maps of probability associated to any states of any node of the network. Some additional features are provided as well: parallel processing options, data discretization routines and function wrappers designed for users with minimal knowledge of the R language. Outputs can be exported to any common GIS format.


bnspatial v1.0.4 (Release date: 2019-03-07)


  • Updated to R 3.5 with Bioconductor 3.8 installation notes

bnspatial v1.0.3 (Release date: 2017-11-16)


  • Added exception handling and error messages for impossible input values
  • Changed an internal variable name in function queryNet to avoid mantainer confusion

bnspatial v1.0.2 (Release date: 2017-07-21)


  • aoi function now accepts character vectors (i.e. input files paths)
  • Example data compacted into a list for neater index of package content
  • Minor typos corrected in documentation
  • New mantainer's email address in the DESCRIPTION file

bnspatial v1.0.1 (Release date: 2016-12-14)


  • New mantainer's email address in the DESCRIPTION file
  • Minor fix to html documentation format
  • Slight speed improvements with better use of internal functions

bnspatial v1.0 (Release date: 2016-07-27)


  • Function mapTarget (and wrapper bnspatial) improved to write large spatial data without oveloading memory
  • Improved robustness in handling input arguments and error/warning messages for most functions
  • Swapped an internal function to compile the network inside loadNetwork
  • Changed objects name within example dataset to show tidily in documentation and minor changes to examples
  • Added file
  • Added copyright notes in COPYRIGHT file
  • Fixed author list to CRAN standards
  • Improved and extended documentation (and code comments)
  • Added startup message with copyright notice and acknowledgments

bnspatial v0.9 (Release date: 2016-06-02)


  • First release on CRAN

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.1.1 by Dario Masante, 2 years ago

Report a bug at

Browse source code at

Authors: Dario Masante [aut, cre]

Documentation:   PDF Manual  

GPL-3 license

Imports raster, rgdal, sf, gRbase, gRain, doParallel, foreach, utils

Suggests knitr, rmarkdown

See at CRAN