Learn R Programming

⚠️There's a newer version (2.11.1) of this package.Take me there.

inlabru

The goal of inlabru is to facilitate spatial modeling using integrated nested Laplace approximation via the R-INLA package. Additionally, implements a log Gaussian Cox process likelihood for modeling univariate and spatial point processes based on ecological survey data. See Yuan Yuan, Fabian E. Bachl, Finn Lindgren, David L. Borchers, Janine B. Illian, Stephen T. Buckland, Havard Rue, Tim Gerrodette (2017), arXiv.

Installation

You can install the current CRAN version of inlabru:

install.packages("inlabru")

You can install the latest bugfix release of inlabru from GitHub with:

# install.packages("devtools")
devtools::install_github("fbachl/inlabru", ref="master")

You can install the development version of inlabru from GitHub with:

# install.packages("devtools")
devtools::install_github("fbachl/inlabru", ref="devel")

Example

This is a basic example which shows you how to solve a common problem:

## basic example code

Copy Link

Version

Install

install.packages('inlabru')

Monthly Downloads

1,705

Version

2.1.9

License

GPL (>= 2)

Maintainer

Fabian Bachl

Last Published

July 24th, 2018

Functions in inlabru (2.1.9)

Poisson1_1D

1-Dimensional Homogeneous Poisson example.
gg.SpatialLines

Geom for SpatialLines objects
gg.SpatialPixels

Geom for SpatialPixels objects
gg.matrix

Geom for matrix
gg.prediction

Geom for predictions
gmap

Plot a map using extend of a spatial object
gorillas

Gorilla Nesting Sites.
make_stable_integration_points

Basic robust integration weights for mesh/polygon intersections
materncov.bands

Matern correlation or covariance function approximate credible bands.
multiplot

Multiple ggplots on a page.
pixels

Generate SpatialPixels covering an inla.mesh
stransform

Coordinate transformation for spatial objects
summary.bru

bru.options

cprod

Cross product of integration points
gg.SpatialPixelsDataFrame

Geom for SpatialPixelsDataFrame objects
deltaIC

Summarise DIC and WAIC from lgcp objects.
devel.cvmeasure

Variance and correlations measures for prediction components
generate.inla

Sampling based on bru posteriors
gg.SpatialPoints

Geom for SpatialPoints objects
gg.RasterLayer

Geom for RasterLayer objects
import.mrsea

MRSea data import
import.seals

Seal pup edata import
integration_weight_construction

Safe(?) way to construct integration weights for mesh/polygon intersections
globe

Plot a globe using rgl
Poisson3_1D

1-Dimensional NonHomogeneous Poisson example.
bru

Convenient model fitting using (iterated) INLA
intersection_mesh

Construct the intersection mesh of a mesh and a polygon
bru.components

bru components
gg

ggplot2 geomes for inlabru related objects
bincount

1D LGCP bin count simulation and comparison with data
generate

Generate samples from fitted bru and inla models
seals

Seal pups
gg.SpatialGridDataFrame

Geom for SpatialGridDataFrame objects
glplot.SpatialLines

Visualize SpatialLines using RGL
glplot.SpatialPoints

Visualize SpatialPoints using RGL
int

Weighted summation (integration) of data frame subsets
import.gorillas

Gorilla data import
int.polygon

Integration points for polygons inside an inla.mesh
import.mexdolphin

Mexdolphin data import
glplot

Render Spatial* and inla.mesh objects using RGL
plot.bru

sline

Convert data frame to SpatialLinesDataFrame
plot.prediction

Plot prediction using ggplot2
mexdolphin

Pan-tropical spotted dolphins in the Gulf of Mexico.
gg.inla.mesh.1d

Geom for inla.mesh.1d objects
generate.bru

Sampling based on bru posteriors
gg.inla.mesh

Geom for inla.mesh objects
gg.SpatialPolygons

Geom for SpatialPolygons objects
mrsea

Marine renewables strategic environmental assessment
gg.data.frame

Geom for data.frame
glplot.inla.mesh

Visualize SpatialPoints using RGL
init.tutorial

Global setting for tutorial sessions
spatial.to.ppp

Convert SpatialPoints and boundary polygon to spatstat ppp object
refine.inla.mesh

Refine an inla.mesh object
spde.posterior

Posteriors of SPDE hyper parameters and Matern correlation or covariance function.
sample.lgcp

Sample from an inhomogeneous Poisson process
inlabru

inlabru
ipoints

Generate integration points
plotsample

Create a plot sample.
is.inside

Query if a point is inside the mesh boundary
point2count

Convert a plot sample of points into one of counts.
split_lines

Split lines at mesh edges
gm

ggplot geom for spatial data
lgcp

Log Gaussian Cox process (LGCP) inference using INLA
spoly

Convert a data.frame of boundary points into a SpatialPolgonsDataFrame
vertices

Vertices
vertices.inla.mesh

Extract vertex locations from an inla.mesh
like

predict.bru

Prediction from fitted bru model
predict.inla

Prediction from fitted inla model
toygroups

Simulated 1D animal group locations and group sizes
tsplit.inla.mesh

Split triangles of a mesh into four triangles
Poisson2_1D

1-Dimensional NonHomogeneous Poisson example.