plotrelp: Plots an object obtained with 'relpnet'

View source: R/plotrelp.R

plotrelpR Documentation

Plots an object obtained with relpnet

Description

This function plots the relative probability of occurrence of a type of event along a linear network

Usage

plotrelp(X, rel_probs, eps_image = F)

Arguments

X

- A lpp object representing a marked point pattern lying on a road network (linnet object)

rel_probs

- An object containing the relative probabilities of a specific type of event along the linear network contained in X, generated through the function relpnet

eps_image

- If set to TRUE, an .eps image is generated. By default it is set to FALSE

Examples

library(DRHotNet)
library(spatstat.geom)
library(spatstat.linnet)
library(spdep)
rel_assault <- relpnet(X = chicago, 
lixel_length = 50, h = 50, mark = "marks", category_mark = "assault")
plotrelp(X = chicago, rel_probs = rel_assault)

DRHotNet documentation built on July 26, 2023, 5:18 p.m.

Related to plotrelp in DRHotNet...