Skip to content
 
 

Latest commit

 

History

30 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages