varyres: A variable-resolution heat map generator

Description Usage Arguments Value Examples

Description

This function creates variable resolution heat maps accroding to a stopping rule

Usage

1
varyres(dataset, cutoff, fun = mean, max = 6)

Arguments

dataset

data frame with spatial data: x-coordinates (x), y coordinates (y), and Bernoulli responses at those locations (res)

cutoff

Box subdivisions cease when a box sample size drops below the cutoff

fun

Function to apply to responses in each box

max

The maximum number of subdivision iterations the algorithm will perform

Value

A list containing a data frame for each iteration of the subdivision algorithm; and a vector of the number of boxes eligible for subdivision at each iteration.

Examples

1
2
3
data(hitter)
data <- varyres(hitter, mean, cutoff = 200, max = 6)
mapit(data[[4]])

cwcomiskey/varyres documentation built on May 30, 2019, 7:19 a.m.