Learn R Programming

inlabru (version 2.11.1)

toypoints: Simulated 2D point process data

Description

This data set serves as an example for basic inlabru.

Usage

data(toypoints)

Arguments

Format

The data are a list that contains these elements:

points

An sf object of point locations and and z measurements

mesh

An fm_mesh_2d object

boundary

An sf polygon denting the region of interest

pred_locs

A sf object with prediction point locations

Examples

Run this code
if (require("ggplot2")) {
  ggplot() +
    fmesher::geom_fm(data = toypoints$mesh, alpha = 0) +
    geom_sf(data = toypoints$boundary, fill = "blue", alpha = 0.1) +
    geom_sf(data = toypoints$points, aes(color = z)) +
    scale_color_viridis_c()
}

Run the code above in your browser using DataLab