GenerateMapColours: Generate color indices for shape object with the aim to color

Description Usage Arguments Value Author(s) References Examples

View source: R/visualization.R

Description

Generate color indices for shape object with the aim to color

Usage

1

Arguments

sp

SpatialPolygonsDataFrame object

Value

Color index vector

Author(s)

Modified from the code by Karl Ove Hufthammer from http://r-sig-geo.2731867.n2.nabble.com/Colouring-maps-so-that-adjacent-polygons-differ-in-colour-td6237661.html; modifications by Leo Lahti

References

See citation("sorvi")

Examples

1
# col <- GenerateMapColours(sp)

Example output

sorvi - Tools for Finnish Open Data.
Copyright (C) 2010-2015 Leo Lahti, Juuso Parkkinen, Juuso Haapanen, Einari Happonen, Jussi Paananen, Joona Lehtomaki ym.

http://github.com/ropengov/sorvi 

 Hard sciences are successful because they deal with soft problems; 
 soft sciences are struggling because they deal with hard problems.
-                        Von Foerster

sorvi documentation built on May 2, 2019, 6:16 p.m.