background preloader

GIS

Facebook Twitter

Kartograph.org. Py Docs. Writing documentation (and keeping it up to date) is a lot of work. You can help improving it by submitting any bug you encounter, or, even better, directly patching this page on Github. Thanks! This documentation refers to the latest version of Kartograph. Work in progress. Installing Kartograph.py To install Kartograph.py you need to run Python (something like 2.7) and a couple of other frameworks. Installing on UbuntuInstalling on Mac OS XInstalling on Windows After you installed all the pre-requisites, installing Kartograph.py should be as easy as python setup.py install Using Kartograph.py Essentially there are two different ways of using Kartograph.py: the command-line or using the Python library.

Kartograph.py as a command line utility¶ The installation script should provide you the Kartograph command line interface. The basic usage is kartograph [MAP CONFIG] This will write the map to standard output. Kartograph config.json -o mymap.svg kartograph config.json --preview Adding Map Layers Sea. Motion-charts-with-r - Using the Google Visualisation API with R. GoogleVis.pdf (objeto application/pdf) OpenData + R + Google = Easy Maps. The release of the R package “googleVis” has made the production of interactive maps through Google’s Chart Tools a simple task.

Ignoring the some basic data manipulation the below map was produced with these two lines of code: library(googleVis) Geo=gvisGeoMap(Map, locationvar=”Country”, numvar=”Percentage”, options=list(height=350, dataMode=’regions’)) plot(Geo) This map, although simple to produce, is nontrivial as it shows the percentages of 5-14 year olds in each country conducting child labour. Data: Map, Chart ID: GeoMap_2011-01-11-09-36-24 R version 2.12.1 (2010-12-16), Google Terms of Use If you print the “Geo” object you will get a load of code that you can then paste into your website.

To leave a comment for the author, please follow the link and comment on his blog: Spatial Analysis » R. MapTube. UCL Centre for Advanced Spatial Analysis. C++/Python GIS Toolkit | Documentation.