Skip to content

mtjhrsk/topogRam

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

topogRam

Make interactive cartograms with d3.js based on this example by Shawn Allen. I also used this example by Etienne Côme.

For France, boundaries come from OpenStreetMap, data from INSEE.

For USA, boundaries and data come from Shawn Allen's project

Warning : sizing is a little manual for the moment...

Installation

To install:

if (!require("devtools")) install.packages("devtools")
devtools::install_github("pvictor/topogRam")

Usage

You can use it like any other htmlwidget :

library("topogRam")
data(frRegPop)
topogRam(
  data = frRegPop,
  key_var = "P13_POP",
  geo_lab = "region",
  colors = c("#FEE0D2", "#FC9272", "#DE2D26")
)

Examples

See the examples.

Or check these examples :

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 76.0%
  • R 23.5%
  • CSS 0.5%