<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus MathML//EN" "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_mathml.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="barcharts">

  <name>Bar Charts</name>

  <metadata>
  <md:version>2.6</md:version>
  <md:created>2001/07/18</md:created>
  <md:revised>2003/06/20 11:17:55.010 GMT-5</md:revised>
  <md:authorlist>
    <md:author id="dmlane">
      <md:firstname>David</md:firstname>
      
      <md:surname>Lane</md:surname>
      <md:email>lane@rice.edu</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist>
    <md:maintainer id="dmlane">
      <md:firstname>David</md:firstname>
      
      <md:surname>Lane</md:surname>
      <md:email>lane@rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="jago">
      <md:firstname>Adan</md:firstname>
      
      <md:surname>Galvan</md:surname>
      <md:email>jago@rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="meyer">
      <md:firstname>Eileen</md:firstname>
      
      <md:surname>Meyer</md:surname>
      <md:email>meyer@rice.edu</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist>
    <md:keyword>bar charts</md:keyword>
    <md:keyword>statistics</md:keyword>
  </md:keywordlist>

  <md:abstract>Introduction to bar charts.</md:abstract>
</metadata>

  <content>
    <para id="intro">
      In the section on <cnxn document="m10927" strength="8">qualitative
      variables</cnxn>, we saw how bar charts could be used to
      illustrate the frequencies of different categories.  For
      example, the bar chart shown in <cnxn target="figure1" strength="9"/> shows how many purchasers of iMac computers were
      previous Macintosh users, previous Windows users, and new
      computer purchasers.
    </para>

    <figure id="figure1">
      <media type="image/gif" src="image001.gif"/>
      <caption>
	iMac buyers as a function of previous computer ownership.
      </caption>
    </figure>

    <para id="first">
      In this section we show how bar charts can be used to present
      other kinds of quantitative information, not just frequency
      counts.  The bar chart in <cnxn target="figure2" strength="9"/>
      shows the percent increases in the Dow Jones, Standard and Poor
      500 (S &amp; P), and Nasdaq stock indexes from May 24th 2000 to
      May 24th 2001.  Notice that both the S &amp; P and the Nasdaq
      had <term>negative increases</term> which means that they
      decreased in value.  In this bar chart, the Y-axis is not
      frequency but rather the signed quantity <emphasis>percentage
      change</emphasis>.
    </para>

    <figure id="figure2">
      <media type="image/gif" src="image002.gif"/>
      <caption>
	Percent increase in three stock indexes from May 24th 2000 to
	May 24th 2001.
      </caption>
    </figure>

    <para id="second">
      Bar charts are particularly effective for showing change over
      time.  <cnxn target="figure3" strength="9"/>, for example, shows
      the percent increase in the consumer price index (CPI) over four
      three-month periods.  The fluctuation between inflation
      increases above and below 3% is made apparent in the graph.
    </para>

    <figure id="figure3">
      <media type="image/gif" src="image003.gif"/>
      <caption>
	Percent change in the CPI over time. Each bar represents
	percent increase for the three months ending at the date
	indicated.
      </caption>
    </figure>

    <para id="third">
      Bar charts are often used to compare the means of different
      experimental conditions.  <cnxn target="figure4" strength="9"/>
      shows the mean time it took one of us (DL) to move the mouse to
      either a small target or a large target.  On the average more
      time was required for small targets than for large ones.
    </para>

    <figure id="figure4">
      <media type="image/gif" src="image004.gif"/>
      <caption>
	Bar chart showing the means for the two conditions.
      </caption>
    </figure>

    <para id="fourth">
      Although bar charts can display means, we do not recommend them
      for this purpose.  <cnxn document="m10215" strength="8">Box
      plots</cnxn> should be used instead since they provide more
      information than bar charts without taking up more space.  For
      example, a box plot of the mouse-movement data is shown in <cnxn target="figure5" strength="9"/>.  You can see that <cnxn target="figure5" strength="9"/> reveals more about the
      distribution of movement-times than does <cnxn target="figure4" strength="9"/>.
    </para>

    <figure id="figure5">
      <media type="image/gif" src="image005.gif"/>
      <caption>
	Box plots of times to move the mouse to the small and large
	targets.
      </caption>
    </figure>

    <para id="fifth">
      The section on <cnxn document="m10127" strength="8">qualitative
      variables</cnxn> earlier in this chapter discussed the use of
      bar charts for comparing distributions.  Some common graphical
      mistakes were also noted.  The earlier discussion applies
      equally well here, to the use of bar charts to display
      quantitative variables.
    </para>

  </content>
</document>
