compute_dots: Dot density scale and compute dot data Performs random...

compute_dotsR Documentation

Dot density scale and compute dot data Performs random rounding when scaling, randomly distributes dots in geographic areas and randomizes the order.

Description

Some of the code is inspired by https://www.blog.cultureofinsight.com/2017/06/building-dot-density-maps-with-uk-census-data-in-r/

Usage

compute_dots(geo_data, categories, scale = 1, datum = NA)

Arguments

geo_data

The base geographic data (sp or sf format)

categories

Vector of column names to re-aggreagte

scale

How many units should be represented by 1 dot

datum

allow the selection of dataum in which we sample dots in polygon


mountainMath/dotdensity documentation built on April 6, 2022, 5:51 a.m.