More

How to display charts next to features in the map?

How to display charts next to features in the map?


This question is meant to be primarily on QGIS software but all other software solutions are welcome as far as it is possible to achieve it as easy as possible, preferably out of the box. Though the limitation is static map (to be printed) so no interactive web map solutions applicable here.

Is there a way how to create charts (tool / plugin in QGIS) for time series data / table for points (can be also lines / polygons) and display it next to features?

I am aware of simple diagram / histogram tool. I also got an idea to load charts as SVG but that means I need to export a lot of charts first and then link them as symbols manually. Is there some more profound out of the box solution?

What I tried so far looks like this:

What I would like to achieve looks like this:


R would best suit your requirement.Try the below and experiment with it.

#Load rgdal library library(rgdal) #Load the shapefile specifying path in dsn and file name for layer world_layer<-readOGR(dsn="C:/SampleData",layer="world_borders") #Describe the columns of the layer summary(world_layer) #Plot using spplot library with column values categorized into 30 classes spplot(world_layer, z="POP_CNTRY", cuts= 30)

You should get a map and chart as shown below of course you could customize it in more than one ways.

There are plenty of links which teach at greater detail

http://www.kevjohnson.org/making-maps-in-r/

http://personal.colby.edu/personal/m/mgimond/Spatial/Intro_to_spatial_data_manipulation_in_R.html#using-the-rgdal-library

https://cran.r-project.org/web/views/Spatial.html

http://www.r-bloggers.com/amateur-mapmaking-getting-started-with-shapefiles/

https://www.nceas.ucsb.edu/scicomp/usecases/ReadWriteESRIShapeFiles


You could use ArcGIS if you access to it. This is an example of what i did with ArcMap and excel(sorry for the language, old map). You can create the graph in excel and insert it as an object. The thing with this method is, that if you want to use a large pallet of colors and you want them synchronized with those one the map, you'll have to do it manually. A tedious method, but it does the job.
Another option, also in ArcMap, is the Graph Toolset which can create temporal graphics. Personally, i don't like this tool and prefer to use Origin or Grapher for making professional graphs.


I'm not quite sure whether UMS MapServer work as WMS layer in QGIS will fit your needs. I've tried it, but I'm no good in designing good chart with MapServer *.MAP file.