geoRing: Produces a surface based on an alternative ring-search...

Description Usage Arguments Examples

Description

Produces a surface based on an alternative ring-search strategy (ie searching in an expanding radius out from the 'crimes'). The output from this function can be used with geoProfile() and geoReportHitscores to produce a map and hitscores based on this strategy.

Usage

1
geoRing(params, data, source, mcmc)

Arguments

params

Parameters list in the format defined by geoParams().

data

Data object in the format defined by geoData().

source

Potential sources object in the format defined by geoDataSource().

mcmc

mcmc object of the form produced by geoMCMC().

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# John Snow cholera data
d <- geoData(Cholera$longitude, Cholera$latitude)
s <- geoDataSource(WaterPumps$longitude, WaterPumps$latitude)
p <- geoParams(data = d, sigma_mean = 1.0, sigma_squared_shape = 2)
m <- geoMCMC(data = d, params = p)
surface_ring <- geoRing(params = p, data = d, source = s, mcmc = m)
gp_ring <- geoProfile(surface = surface_ring)
map <- geoPlotMap(params = p, data = d, source = s, surface = gp_ring, 
opacity = 1, breakPercent = seq(0,50,l=21))
map

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