defineGATmapclasses: Define Classes for Map Legends

View source: R/defineGATmapclasses.R

defineGATmapclassesR Documentation

Define Classes for Map Legends

Description

This function prepares the classes for the original and aggregated maps so that the same scale can be used for both.

Usage

defineGATmapclasses(areaold, areanew, aggvar, breaks = 7)

Arguments

areaold

A spatial polygons data frame.

areanew

A second spatial polygons data frame that ahould have the same outer boundary as the first one.

aggvar

The variable to be mapped.

breaks

The number of desired categories in the maps.

Examples

# prepare the classes for the choropleth maps
defineGATmapclasses(
  areaold = hftown,
  areanew = hfagg610k,
  aggvar = "TOTAL_POP",
  breaks = 4
)


ajstamm/gatpkg documentation built on Nov. 23, 2023, 9:44 a.m.