Description Usage Arguments Value Author(s) References Examples
View source: R/visualization.R
Generate color indices for shape object with the aim to color
1 |
sp |
SpatialPolygonsDataFrame object |
Color index vector
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
See citation("sorvi")
1 | # col <- GenerateMapColours(sp)
|
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.