Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: -sparkline- and -tabplot- revised on SSC

From   Nick Cox <>
Subject   st: -sparkline- and -tabplot- revised on SSC
Date   Thu, 21 Feb 2013 14:49:51 +0000

Thanks as usual to Kit Baum, files for my packages -sparkline- and
-tabplot- have been revised on SSC. If interested, please use -ssc- or
-adoupdate- to install or update, as appropriate.

More details on what's new follow my signature for those interested.



This is a relatively new package announced in

Stata 9.2 is required.

I have added several more references to the help. Also, I added a
-vertical- option to allow line plots to be stacked horizontally
within panels. This is important for many of my colleagues and
students who plot series obtained from bores or cores of sediment with
depth on the vertical axis.

While adding this functionality with my right hand, I took away some
functionality with my left. In the unlikely event that you liked the
first published version of -sparkline- _and_ also particularly liked
its -separate()- option, then copy -sparkline-'s files under different
names, e.g. sparkline0.ado, sparkline0.hlp, before you update. Simply,
it proved too awkward to keep and explain both -vertical- and a
-separate()- option.


This is an older package. Stata 8 is required.

The code is as previously updated, *! 2.6.1 NJC 19 Oct 2012, and the
changes concern more references and examples in the help.

The major thrust of -tabplot- is this. Stacking bars end-to-end or
placing bars side by side on the same axis remain very popular as ways
of showing two-way or three-way tables of frequencies or other
additive quantities. However, they are often tricky to read and
interpret. The format of a table of bars is often as easy or easier to
think about, and has other advantages too, e.g.

* zeros or very small frequencies or percents are clearly exposed

* what is what can be read off from axis labelling, rather than
relying on a separate key or legend

* those so minded can hybridise graphs and tables by showing numerical values.

Naturally, there is plenty of room for disagreement here, on a variety
of statistical, psychological and aesthetic grounds.

On -tabplot-: those who want examples to see what I am talking about
will find them, courtesy of friends, at


although in both cases please note that one decimal place is now the
default for any display of percents.

In accordance with my personal policy explained at


help files for these packages are now supplied as sthlp files, so any
Stata 8 or 9 users would need to convert to .hlp files.
*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index