Monday, August 10, 2015

Learning TikZ: Re-creating article diagrams with LaTeX / TikZ: #1

I am trying to improve my LaTeX/TikZ skills, so I am re-creating on request scientific article diagrams. The first is here that I've made for a friend of mine:

Original diagram (Note this diagram is copyright(c) Academy of Management; used here in a Fair Use fashion):

TikZ diagram:

The LaTeX code and instructions can be found at github.

Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

If you have a diagram you'd like re-created, just add a comment to this blog post and we can talk. Expect a turn-around time of >1 week.
I reserve the write to decline diagrams.  :-)


The paper the original diagram (Figure 1, p532) is from:

An Organizational Learning Framework: From Intuition to Institution
Mary M. Crossan, Henry W. Lane and Roderick E. White
The Academy of Management Review
Vol. 24, No. 3 (Jul., 1999) , pp. 522-537
Published by: Academy of Management

Thursday, August 28, 2014

chidley: XML to JSON converter, written in Go

I have just this morning released chidley, a code generator that reads XML and generates a Go program that can convert the given XML into JSON. Please see the github site for more details.

I will be doing a series of chidley examples in this blog over the coming weeks.

Wednesday, March 05, 2014

rpmout: Go (golang) tools for listing installed RPMs in HTML,. LaTeX, json

rpmout is a utility for creating user facing rpm information written in Go.

It extracts the rpm tag info (using the rpm command) and produces an HTML list fragment (default), JSON, simple text, and LaTeX. It can be restricted to the rpms that are implicated in a particular set of directories.

My use is to produce a list of bioinformatics applications installed as RPMS on a Rocks cluster

For example: users want to know what is installed in the bioinformatics install dir /opt/bioinformatics, and 'rpmout' generates (by default) an HTML fragment made up of a list of rpms and their useful attributes. This fragment is meant to be embedded into a static HTML page that wraps it with the appropriate local style, titles it, etc.

Here is an example HTML output file: (~1.4MB compressed)

rpmout is my first real Go program, and I learned a lot about using channels and goroutines.

Comments welcome!  :-)

Monday, November 05, 2012

Energy flow visualizations for USA, UK, China and World, 2007

Continuing my series on the visualization of energy flows, the 2007 energy flows for (click on links for interactive diagrams):

Source: C.A. Smith, R.D. Belles, and A.J. Simon. March 2011. Estimated International Energy Flows 2007 (3.9MB PDF). Lawrence Livermore National Laboratory.  

Related links:  

Friday, October 26, 2012

Visualizing Alberta energy flow, emissions and water use by sector

Related to my earlier post Visualizing Canadian Energy Flows with d3.js Sankey diagrams, here I am presenting Sankey diagrams with data from the publication:

2011. Development of Energy, Emission and Water Flow Sankey Diagrams for the Province of Alberta Through Modeling Final Report. April 11, 2011. Amit Kumar, Veena Subramanyam, Md Ruhul Kabir. Department of Mechanical Engineering, University of Alberta.
Sankey diagrams (click on links for interactive diagrams):
 The last is particularly illuminating, showing a huge amount of both surface water and ground water used by the petroleum industry from the Athabasca River basin. See

Thanks again to Mike Bostock and his d3.js plugin for making Sankey diagrams

Thursday, October 25, 2012

Visualizing Canadian Energy Flows with d3.js Sankey diagrams

I have been working with processing.js but wanted to learn a little about d3js for visualizations, so took a look at Mike Bostock's d3.js plugin for making Sankey diagrams.

So I pulled down two documents that had energy flow diagrams for Canada:

I extracted the data from these diagrams and built these interactive Sankey energy flows:
Note that these two documents are looking at slightly different views of energy flows (and 2007 does not include Uranium), so can't be compared directly.

If you have any (preferably Canadian) datasets that could be presented in this fashion, let me know and we can collaborate in getting them into this form.

Addendum: 2012 10 26 22:28: Wow! The Economist's blog Graphic detail: Charts, maps and infographics has an article about this post: Charting Canada's energy: Go with the flow 

Related article on energy flows using Sankey diagrams: Visualizing Alberta energy flow, emissions and water use by sector

Wednesday, November 23, 2011

My Google Scholar Citations page

I just took advantage of the opening-up of Google Scholar Citations and got my own page up. It is pretty cool to see your citations, etc. all pulled together.