Stata
Products Purchase Support Company
Search
   >> Home >> Resources & support >> Users Group meetings >> 5th UK meeting >> Abstract

-hplot- and -hbar- for presentation graphics

Speakers  Nicholas J. Cox, Durham University, UK

hplot and hbar are basic presentation graphics programs using gph. Stata 6 is required. Driver programs have been written for hplot and hbar automating various common tasks: cihplot shows confidence intervals (calls up ci), tabhplot and tabhbar display one- or two-dimensional tables of frequencies in graph form (counting is done internally), and hbox uses hbar to provide an alternative to graph, box. They are all downloadable from the SSC-IDEAS archive.

hplot, for horizontally labelled plots, shows one horizontal line for each observation included with one or more point symbols using a common scale. It can produce a variety of plots, including

  • W.S. Cleveland's dot charts or dot plots
  • variations on them with continuous lines
  • D.R. McNeil's horizontal parallel line plots
  • displays of key quantities with/without confidence intervals

By default, data are on dotted lines with base zero that extend to the maximum for each observation. If negative values are present, such dotted lines also extend to the minimum for each observation.

If grid option: horizontal dotted lines extend over whole data region.
If line option: horizontal continuous lines with base at left-hand margin.
If range option: horizontal dotted or continuous lines extend only over range of values for each observation.
If data allow, a different base may be forced using xscale().

The legend on left can be from a specified variable: it is right-justified and should look readable up to about 30 observations.

The user can force extra gaps between lines and tune magnitude of those gaps. Extra legends may be inserted in such gaps.

The order of lines can be controlled by sorting on any variable(s).

The standard symbol set of graph has been extended to include vertical bars, arrows, and crosses.

The large title() may be put at the top of the graph.

The user may control font sizes.

hbar for horizontal bar charts has many of the same features as hplot.

Bars for different variables stacked with base at 0: optionally, bars may be horizontal lines with or without vertical lines at either or both ends.

The shading set of graph has been extended to include empty (unshaded) and invisible bars.

The user can tune the fraction of vertical space taken up by bars (1 means bars touch).

Values may also be shown as text, either inside or outside bars.

Meetings
Announcements
Proceedings
Overview
2008 Fall North America
2008 Summer North America
2007 North America
2006 North America
2005 North America
2004 North America
2003 North America
2001 North America
2007 Washington, DC
2007 West Coast U.S.
2006 Australia
2004 Australia
2008 Germany
2007 Germany
2006 Germany
2005 Germany
2004 Germany
2003 Germany
2003 Ireland
2008 Italy
2007 Italy
2006 Italy
2005 Italy
2004 Italy
2002 Netherlands
2000 Netherlands
2008 Poland
2000 Spain
1999 Spain
2007 Sweden
2005 Sweden
2008 UK
2007 UK
2006 UK
2005 UK
2004 UK
2003 UK
2002 UK
2001 UK
2000 UK
1999 UK
1998 UK
1997 UK
Resources & support
FAQs
Technical support
NetCourses
Short courses
Users Group meetings
Statalist
Links
Software updates
Software archives
Customer service
Manuals & supplements
Stata Journal
STB
Stata News
Stata Automation
Plugins

Site overview
Products
Resources & support
Company
Site index

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