A collection of examples using Jgraph


jgraph is an elegant little tool which accepts script files, that describe a picture, and generates .eps files out of them. The resulting picture is of high quality, that can go into books and journal articles - much better than the ugly crud we normally get out of spreadsheets.

The documentation of jgraph is found in it's man page. Say man jgraph to access it. However, once you have a nodding familiarity with the manual, the examples on this page are quite useful.

Just in case, the commands needed to turn a .jgr into a .eps and a .pdf are:

	$ jgraph a.jgr > a.eps
	$ epstopdf a.eps
	$ ls -al a.{jgr,eps,pdf}

It is easy to encode these into a Makefile, so that make will automatically look at a most-recently modified .jgr file and recreate the .eps or .pdf files as needed.

The examples

If you are using a graphics mode WWW browser, you will see many pictures. Click on any picture to see the jgraph which generated it. If you are not in graphics mode, you will see a string like "Example 0". Click on it to see the jgraph.

Simple time-series graph

Example 0

Market model results

Example 1

Simple bar chart

Example 2

Time-series with trend superposed

Example 3

Time-series with long-run average and forecasts

Example 4

Time-series of real and nominal interest rates

Example 5

Interest rates on 91 and 364 day tbills at RBI auctions

Example 6

Monthly exports growth, with annual averages superposed

Example 7

Quarterly returns on BSE Sensex and Arvind mills (bar+line)

Example 8

Market model estimation - scatter + line

Example 9

Two graphs in one, both bar charts

Example 10

Autocorrelation function of some stock returns

Example 11

Money and prices growth rates

Example 12

Quarterly IIP growth

Example 13

GDR paper event studies

Example 14

Returns on the IPO market - monthly time-series

Example 15

Security market line

Example 16

Time-series of monthly volatilities

Example 17

Time-series of market index, with high/low and comment strings

Example 18

Time-series of volumes

Example 19

A nice bar chart

Example 20

Ajay Shah, 2001