graphPolygonWithCategoriesSouthBrazil: Plot a polygon with discrete colour fill over a polygon with...

Description Usage Arguments Value

Description

Plot a polygon with colour fill over a polygon with black lines. Saves to a large pdf and a small png

Usage

1
2
3
graphPolygonWithCategoriesSouthBrazil(colourVar, dataPoly, legendTitle,
  fileName, plotTitle, directoryPlots = getwd(), backPolygon = NULL,
  brewerPalette = "BuGn", fontFam = NULL)

Arguments

colourVar

categorical variable that defines the gradient colour. Same length and order as dataPoly.

dataPoly

SpatialPolygonsDataFrame to be plotted.

legendTitle

legend title as character.

fileName

filename (not with directory or extension) as character.

directoryPlots

directory to store plots

backPolygon

optional background polygon to be plotted on top of - fortified or raw (prefortifying will be faster if several maps are being generated).

brewerPalette

brewer palette name as character. Default is "BuGn".

Value

A ggplot object. In addition, a pdf file is written with name fileName in directory directoryPlots.


kendonB/bellmisc documentation built on May 20, 2019, 9:03 a.m.