Login
📚 Statistics with Technology 2e
Chapters ▾
⇩ Download ▾

2.3 Other Graphical Representations of Data

There are many other types of graphs. Some of the more common ones are the frequency polygon, the dot plot, the stem plot, scatter plot, and a time-series plot. There are also many different graphs that have emerged lately for qualitative data. Many are found in publications and websites. The following is a description of the stem plot, the scatter plot, and the time-series plot.

Stem Plots

Stem plots are a quick and easy way to look at small samples of numerical data. You can look for any patterns or any strange data values. It is easy to compare two samples using stem plots.

The first step is to divide each number into 2 parts, the stem (such as the leftmost digit) and the leaf (such as the rightmost digit). There are no set rules, you just have to look at the data and see what makes sense.

You can create a stem and leaf plot on R. the command is:

stem(variable) – creates a stem and leaf plot, if you do not get a stem plot that shows all of the stems then use scale = a number. Adjust the number until you see all of the stems. So you would have stem(variable, scale = a number)

For Example 1, the command would be

grades<-c(62, 87, 81, 69, 87, 62, 45, 95, 76, 76, 62, 71, 65, 67, 72, 80, 40, 77, 87, 58, 84, 73, 93, 64, 89)
stem(grades, scale = 2)

grades <- c(62, 87, 81, 69, 87, 62, 45, 95, 76, 76, 62, 71, 65, 67, 72, 80, 40, 77, 87, 58, 84, 73, 93, 64, 89)
stem(grades, scale = 2)

Output:

The decimal point is 1 digit(s) to the right of the |

A stem-and-leaf plot of 25 values ranging from 40 to 95, with most values in the 60s through 80s.

Now just put a title on the stem plot.

Scatter Plot

Sometimes you have two different variables and you want to see if they are related in any way. A scatter plot helps you to see what the relationship would look like. A scatter plot is just a plotting of the ordered pairs.

Time-Series

A time-series plot is a graph showing the data measurements in chronological order, the data being quantitative data. For example, a time-series plot is used to show profits over the last 5 years. To create a time-series plot, the time always goes on the horizontal axis, and the other variable goes on the vertical axis. Then plot the ordered pairs and connect the dots. The purpose of a time-series graph is to look for trends over time. Caution, you must realize that the trend may not continue. Just because you see an increase, doesn’t mean the increase will continue forever. As an example, prior to 2007, many people noticed that housing prices were increasing. The belief at the time was that housing prices would continue to increase. However, the housing bubble burst in 2007, and many houses lost value, and haven’t recovered.

Be careful when making a graph. If you don’t start the vertical axis at 0, then the change can look much more dramatic than it really is. As an example, Graph 2.3.8 shows the Graph 2.3.7 with a different scaling on the vertical axis. Notice the decrease in weight looks much larger than it really is.

Line chart titled Weight over Time showing weight decreasing overall from 200 pounds at month 0 to 187 pounds at month 5, with a slight increase from month 2 to month 3.
Figure

Homework

Exercise 1

  1. Students in a statistics class took their first test. The data in Example 4 are the scores they earned. Create a stem plot.
    Table 4: Data of Test 1 Grades
    80798974736779
    93707076888373
    81798085798079
    58939474
  2. Students in a statistics class took their first test. The data in Example 5 are the scores they earned. Create a stem plot. Compare to the graph in question 1.
    Table 5: Data of Test 1 Grades
    676776478570
    877680728498
    846465828181
    88748783
  3. When an anthropologist finds skeletal remains, they need to figure out the height of the person. The height of a person (in cm) and the length of one of their metacarpal bone (in cm) were collected and are in Example 6 ("Prediction of height," 2013). Create a scatter plot and state if there is a relationship between the height of a person and the length of their metacarpal.
    Table 6: Data of Metacarpal versus Height
    Length of MetacarpalHeight of Person
    45171
    51178
    39157
    41163
    48172
    49183
    46173
    43175
    47173
  4. Table 7 contains the value of the house and the amount of rental income in a year that the house brings in ("Capital and rental," 2013). Create a scatter plot and state if there is a relationship between the value of the house and the annual rental income.
    Table 7: Data of House Value versus Rental
    ValueRentalValueRentalValueRentalValueRental
    810006656770004576750007280675006864
    950007904940008736900006240850007072
    12100012064115000790411000070721040007904
    1350008320130000977612600062401250007904
    1450008320140000956814000091521350007488
    16500013312165000852815500074881480008320
    1780001185617400010400170000956817000012688
    2000001227220000010608194000112321900008320
    214000852828000010400200000104002000008320
    24000010192240000120642400001164822500012480
    28900011648270000128962620001019224450011232
    32500012480310000124803030001227230000012480
  5. The World Bank collects information on the life expectancy of a person in each country ("Life expectancy at," 2013) and the fertility rate per woman in the country ("Fertility rate," 2013). The data for 24 randomly selected countries for the year 2011 are in Table 8. Create a scatter plot of the data and state if there appears to be a relationship between life expectancy and the number of births per woman.
    Table 8: Data of Life Expectancy versus Fertility Rate
    Life ExpectancyFertility RateLife ExpectancyFertility rate
    77.21.772.33.9
    55.45.876.01.5
    69.92.266.04.2
    76.42.15.95.2
    75.01.854.46.8
    78.22.062.94.7
    73.02.678.32.1
    70.82.872.12.9
    82.61.480.71.4
    68.92.674.22.5
    81.01.573.31.5
    54.26.967.12.4
  6. The World Bank collected data on the percentage of gross domestic product (GDP) that a country spends on health expenditures ("Health expenditure," 2013) and the percentage of woman receiving prenatal care ("Pregnant woman receiving," 2013). The data for the countries where this information is available for the year 2011 is in Table 9. Create a scatter plot of the data and state if there appears to be a relationship between percentage spent on health expenditure and the percentage of woman receiving prenatal care.
    Table 9: Data of Prenatal Care versus Health Expenditure
    Prenatal Care (%)Health Expenditure (% of GDP)
    47.99.6
    54.63.7
    93.75.2
    84.75.2
    100.010.0
    42.54.7
    96.44.8
    77.16.0
    58.35.4
    95.44.8
    78.04.1
    93.36.0
    93.39.5
    93.76.8
    89.86.1
  7. The Australian Institute of Criminology gathered data on the number of deaths (per 100,000 people) due to firearms during the period 1983 to 1997 ("Deaths from firearms," 2013). The data is in Table 10. Create a time-series plot of the data and state any findings you can from the graph.
    Table 10: Data of Year versus Number of Deaths due to Firearms
    Year19831984198519861987198819891990
    Rate4.314.424.524.354.394.213.403.61
    Year1991199219931994199519961997
    Rate3.673.612.982.952.722.952.3
  8. The economic crisis of 2008 affected many countries, though some more than others. Some people in Australia have claimed that Australia wasn’t hurt that badly from the crisis. The bank assets (in billions of Australia dollars (AUD)) of the Reserve Bank of Australia (RBA) for the time period of March 2007 through March 2013 are contained in Table 11 ("B1 assets of," 2013). Create a time-series plot and interpret any findings.
    Table 11: Data of Date versus RBA Assets
    DateAssets in Billions of AUD
    Mar-200696.9
    Jun-2006107.4
    Sep-2006107.2
    Dec-2006116.2
    Mar-2007123.7
    Jun-2007134.0
    Sep-2007123.0
    Dec-200793.2
    Mar-200893.7
    Jun-2008105.6
    Sep-2008101.5
    Dec-2008158.8
    Mar-2009118.7
    Jun-2009111.9
    Sep-200987.0
    Dec-200986.1
    Mar-201083.4
    Jun-201085.7
    Sep-201074.8
    Dec-201076.0
    Mar-201175.7
    Jun-201175.9
    Sep-201175.2
    Dec-201187.9
    Mar-201291.0
    Jun-201290.1
    Sep-201283.9
    Dec-201295.8
    Mar-201390.5
  9. The consumer price index (CPI) is a measure used by the U.S. government to describe the cost of living. Table 12 gives the cost of living for the U.S. from the years 1947 through 2011, with the year 1977 being used as the year that all others are compared (DeNavas-Walt, Proctor & Smith, 2012). Create a time-series plot and interpret.
    Table 12: Data of Time versus CPI
    YearCPI-U-RS1 index (December 1977=100)YearCPI-U-RS1 index (December 1977=100)
    194737.51980127.1
    194840.51981139.2
    194940.01982147.6
    195040.51983153.9
    195143.71984160.2
    195244.51985165.7
    195344.81986168.7
    195445.21987174.4
    195545.01988180.8
    195645.71989188.6
    195747.21990198.0
    195848.51991205.1
    195948.91992210.3
    196049.71993215.5
    196150.21994220.1
    196250.71995225.4
    196351.41996231.4
    196452.11997236.4
    196552.91998239.7
    196654.41999244.7
    196756.12000252.9
    196858.32001260.0
    196960.92002264.2
    197063.92003270.1
    197166.72004277.4
    197268.72005286.7
    197373.02006296.1
    197480.32007304.5
    197586.92008316.2
    197691.92009315.0
    197797.72010320.2
    1978104.42011330.3
    1979114.4
  10. The median incomes for all households in the U.S. for the years 1967 to 2011 are given in Table 13 (DeNavas-Walt, Proctor & Smith, 2012). Create a time-series plot and interpret.
    Table 13: Data of Time versus Median Income
    YearMedian IncomeYearMedian Income
    196742,056199049,950
    196843,868199148,516
    196945,499199248,117
    197045,146199347,884
    197144,707199448,418
    197246,622199549,935
    197347,563199650,661
    197446,057199751,704
    197544,851199853,582
    197645,595199954,932
    197745,884200054,841
    197847,659200153,646
    197947,527200253,019
    198046,024200352,973
    198145,260200452,788
    198245,139200553,371
    198344,823200653,768
    198446,215200754,489
    198547,079200852,546
    198648,746200952,195
    198749,358201050,831
    198849,737201150,054
    198950,624
  11. State everything that makes Graph 2.3.9 a misleading or poor graph.
    Bar chart titled Favorite Drinks showing coffee as most frequent at 7, followed by colas at 6, root beer at 5, lemon flavored drinks and teas at 3 each, and other at 2.
    Graph 2.3.9: Example of a Poor Graph
  12. State everything that makes Graph 2.3.10 a misleading or poor graph (Benen, 2011).
    A vertical bar chart with eight unlabeled categories, showing values ranging from about 45,000 to 165,000.
    Graph 2.3.10: Example of a Poor Graph
  13. State everything that makes Graph 2.3.11 a misleading or poor graph ("United States unemployment," 2013).
    Bar chart of the United States unemployment rate showing a general decline from 9.0% in September 2011 to 7.3% in August 2013.
    Graph 2.3.11: Example of a Poor Graph
  14. State everything that makes Graph 2.3.12 a misleading or poor graph.
    Bar chart of monthly profit during the first half of the year, with profits declining from $4,230 in January to a loss of $1,320 in April before recovering.
    Graph 2.3.12: Example of a Poor Graph

Answer

See solutions

Data Sources:

B1 assets of financial institutions. (2013, June 27). Retrieved from www.rba.gov.au/statistics/tables/xls/b01hist.xls

Benen, S. (2011, September 02). [Web log message]. Retrieved from http://www.washingtonmonthly.com/pol...edit031960.php

Capital and rental values of Auckland properties. (2013, September 26). Retrieved from http://www.statsci.org/data/oz/rentcap.html

Contraceptive use. (2013, October 9). Retrieved from http://www.prb.org/DataFinder/Topic/...gs.aspx?ind=35

Deaths from firearms. (2013, September 26). Retrieved from http://www.statsci.org/data/oz/firearms.html

DeNavas-Walt, C., Proctor, B., & Smith, J. U.S. Department of Commerce, U.S. Census Bureau. (2012). Income, poverty, and health insurance coverage in the United States: 2011 (P60-243). Retrieved from website: www.census.gov/prod/2012pubs/p60-243.pdf

Density of people in Africa. (2013, October 9). Retrieved from http://www.prb.org/DataFinder/Topic/...249,250,251,25 2,253,254,34227,255,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,27 2,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,294, 295,296,297,298,299,300,301,302,304,305,306,307,308

Department of Health and Human Services, ASPE. (2013). Health insurance marketplace premiums for 2014. Retrieved from website: aspe.hhs.gov/health/reports/2...b_premiumsland scape.pdf

Electricity usage. (2013, October 9). Retrieved from http://www.prb.org/DataFinder/Topic/...s.aspx?ind=162

Fertility rate. (2013, October 14). Retrieved from http://data.worldbank.org/indicator/SP.DYN.TFRT.IN

Fuel oil usage. (2013, October 9). Retrieved from http://www.prb.org/DataFinder/Topic/...s.aspx?ind=164

Gas usage. (2013, October 9). Retrieved from http://www.prb.org/DataFinder/Topic/...s.aspx?ind=165

Health expenditure. (2013, October 14). Retrieved from http://data.worldbank.org/indicator/SH.XPD.TOTL.ZS Hinatov, M. U.S. Consumer Product Safety Commission, Directorate of Epidemiology. (2012). Incidents, deaths, and in-depth investigations associated with non-fire carbon monoxide from engine-driven generators and other engine-driven tools, 1999-2011. Retrieved from website: www.cpsc.gov/PageFiles/129857/cogenerators.pdf

Life expectancy at birth. (2013, October 14). Retrieved from http://data.worldbank.org/indicator/SP.DYN.LE00.IN

Median income of males. (2013, October 9). Retrieved from http://www.prb.org/DataFinder/Topic/...s.aspx?ind=137

Median income of males. (2013, October 9). Retrieved from http://www.prb.org/DataFinder/Topic/...s.aspx?ind=136

Prediction of height from metacarpal bone length. (2013, September 26). Retrieved from http://www.statsci.org/data/general/stature.html

Pregnant woman receiving prenatal care. (2013, October 14). Retrieved from http://data.worldbank.org/indicator/SH.STA.ANVC.ZS

United States unemployment. (2013, October 14). Retrieved from http://www.tradingeconomics.com/unit...mployment-rate

Weissmann, J. (2013, March 20). A truly devastating graph on state higher education spending. The Atlantic. Retrieved from http://www.theatlantic.com/business/...ending/274199/