geoPlotCoallocation: Calculate and plot probability of coallocation

Description Usage Arguments Examples

Description

For all pairs of crimes, calculates the probability that both originate from the same source and plots a coloured half matrix representing these data. The data underlying these calculations can be accessed as the object $coAllocation produced by geoMCMC().

Usage

1
geoPlotCoallocation(mcmc, cols = NULL)

Arguments

mcmc

object of the type output by geoMCMC().

cols

colour palette to use. Defaults to viridis palette.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# London example data
d <- LondonExample_crimes
s <- LondonExample_sources
p <- geoParams(data = d, sigma_mean = 1.0, sigma_squared_shape = 2)
m <- geoMCMC(data = d, params = p)
# produce simple map
geoPlotMap(params = p, data = d, source = s, surface = m$geoProfile,
                breakPercent = seq(0, 50, 5), mapType = "hybrid",
                crimeCol = "black", crimeCex = 2, sourceCol = "red", sourceCex = 2)
# calculate coallocation matrix and plot
geoPlotCoallocation(m)

bobverity/Rgeoprofile documentation built on May 12, 2019, 11:28 p.m.