dot.density: Generate dots randomly within regions

View source: R/iNZightMapGG.R

dot.densityR Documentation

Generate dots randomly within regions

Description

Generate dots randomly within regions

Usage

dot.density(data, var, total = 300, per.dot = 1000, prop = FALSE)

Arguments

data

Map dataset

var

Variable to use to allocate dots

total

For proportion dot density maps, the total number of points

per.dot

For "dot per N" maps, the N that each dot reprsents

prop

Boolean to switch between proportional dot density/"dot per N" maps.

Value

An sf object containing a series of dots for each region.


iNZightVIT/iNZightMaps documentation built on Feb. 3, 2024, 4:42 p.m.