recharts (version 0.0.302)

eMap: Map charts

Description

ECharts style map charts. Only support CHINA now.

Usage

eMap(dat, opt = list())

Arguments

dat
data.frame, rownames are province names.
opt
option of ECharts.

Value

The HTML code as a character string.

Examples

Run this code
testData <- read.csv(system.file("examples", "testDataForMap.csv", package = "recharts"),stringsAsFactors=FALSE) 
eMap(testData, namevar="province")

Run the code above in your browser using DataCamp Workspace