Skip to content

gusy/topogRam

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 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 :

About

R htmlwidget for cartogram

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 76.2%
  • R 23.3%
  • CSS 0.5%