Map Chart

Drawing a background map is the first step of any geospatial analysis. Once this background is available, you can color each region to get a choropleth map, add points or bubble to get a bubble map, reshape the region to get a cartogram, or show connection with a connection map.



Color Themes


{
   "colorBy" : "CO2",
   "graphType" : "Map",
   "legendPosition" : "left",
   "mapId" : "countries",
   "theme" : "solarized",
   "title" : "CO2 Emmisions During 2018",
   "topoJSON" : "https : //www.canvasxpress.org/data/world.geo.json"
}
library(canvasXpress)
y=read.table("https://www.canvasxpress.org/data/cX-CO2T-dat.txt", header=TRUE, sep="\t", quote="", row.names=1, fill=TRUE, check.names=FALSE, stringsAsFactors=FALSE)
z=read.table("https://www.canvasxpress.org/data/cX-CO2T-var.txt", header=TRUE, sep="\t", quote="", row.names=1, fill=TRUE, check.names=FALSE, stringsAsFactors=FALSE)
canvasXpress(
  data=y,
  varAnnot=z,
  colorBy="CO2",
  graphType="Map",
  legendPosition="left",
  mapId="countries",
  theme="solarized",
  title="CO2 Emmisions During 2018",
  topoJSON="https://www.canvasxpress.org/data/world.geo.json"
)