Type: Package
Title: Data for "R Graphics Cookbook"
Version: 2.0.1
Description: Data sets used in the book "R Graphics Cookbook" by Winston Chang, published by O'Reilly Media.
License: GPL-2
LazyData: yes
Depends: R (≥ 2.10)
Collate: 'gcookbook.r'
RoxygenNote: 7.3.2
NeedsCompilation: no
Packaged: 2025-03-26 21:44:46 UTC; winston
Author: Winston Chang [aut, cre]
Maintainer: Winston Chang <winston@stdout.org>
Repository: CRAN
Date/Publication: 2025-03-26 22:10:01 UTC

gcookbook: Data sets for "R Graphics Cookbook"

Description

This package contains data sets used in the book "R Graphics Cookbook" by Winston Chang, published by O'Reilly Media.

Author(s)

Maintainer: Winston Chang winston@stdout.org


Apple stock data

Description

Weekly stock data for AAPL (Apple, Inc.) from 1984 to 2012.

Usage

aapl

Variables


Homing in desert ants

Description

Data from an experiment on the homing performance of a desert ant, Cataglyphis bicolor.

Usage

anthoming

Variables

Source

Hand, D.J., Daly, F., Lunn, A.D., McConway, K.J. & Ostrowski, E. (1994), A Handbook of Small Data Sets, Chapman & Hall.

Duelli, P. and Wehner, R. (1973), The spectal sensitivity of polarized light orientation in Cataglyphis bicolor (Formicidae, Hymenoptera). Journal of Comparative Physiology, 86, 36-53.


Summary of cabbages data set

Description

This data set has groupwise means, standard deviations, counts, and standard error of the mean for the cabbages data set from the MASS package. The purpose of this summarized data set is to make it easy to use for example graphs.

Usage

cabbage_exp

See Also

The source data set in the MASS package, cabbages.


Global climate temperature anomaly data from 1800 to 2011

Description

This data set includes estimated global temperature anamoly data for the years 1800 through 2011. The anomaly is the difference from the baseline temperature, which is the mean of the yearly temperatures from 1951-1980.

Usage

climate

Variables

Source

Berkeley Earth Project: http://berkeleyearth.org/land-and-ocean-data/

Climatic Research Unit (CRUTEM3): https://crudata.uea.ac.uk/cru/data/crutem3/

NASA: https://data.giss.nasa.gov/gistemp/


Corneal thickness of eyes

Description

Corneal thickness of eight people who had glaucoma in one eye.

Usage

corneas

Variables

Source

Hand, D.J., Daly, F., Lunn, A.D., McConway, K.J. & Ostrowski, E. (1994), A Handbook of Small Data Sets, Chapman & Hall.

Ehlers, N. On corneal thickness and introcular pressure, II. (1970). Acta Opthalmologica, 48, 1107-1112.


Health and economic data about countries around the world from 1960-2010

Description

Health and economic data about countries around the world from 1960-2010, from the World Bank.

Usage

countries

Variables

Source

World Bank: https://data.worldbank.org/


Convictions for drunkenness

Description

Number of people convicted for drunkenness at Tower Bridge and Lambeth Magistrates' Courts from January 1 to June 27, 1970, classified by age and sex.

Usage

drunk

Source

Hand, D.J., Daly, F., Lunn, A.D., McConway, K.J. & Ostrowski, E. (1994), A Handbook of Small Data Sets, Chapman & Hall.

Cook, T. (1971). New Society, 20 May, 1971.


Height and weight of schoolchildren

Description

Height and weight of schoolchildren

Usage

heightweight

Variables

Source

Lewis, T., & Taylor, L.R. (1967), Introduction to Experimental Ecology, Academic Press.


Data from simulation of hurricane Isabel

Description

This data is from a simulation of hurricane Isabel in 2003. It includes temperature and wind data for a 2139km (east-west) x 2004km (north-south) x 19.8km (vertical) volume. The simluation data is from the National Center for Atmospheric Research, and it was used in the IEEE Visualization 2004 Contest.

Usage

isabel

Variables

Source

http://vis.computer.org/vis2004contest/data.html

https://ncar.ucar.edu/


Successful sexual relations in Mad Men (TV show)

Description

Each row of this data frame represents a pair of characters who had a sexual relationship on the TV show Mad Men, as of the end of season 4. This data can be displayed with an undirected graph.

Usage

madmen

Variables

The placement of names in column Name1 as opposed to Name2 is arbitrary, and not meaningful. In other words, for any row, you can swap the values of Name1 and Name2, and it will represent the same information.

Source

Wired Magazine 20.02, February 2012

See Also

For a list of attempted sexual pairings, see madmen2.


Attempted sexual relations in Mad Men (TV show)

Description

Each row of this data frame represents a pair of characters on the TV show Mad Men, as of the end of season 4. Each row represents an attempted sexual relation: the character in the first column, Name1, attempted to have sex with the character in the second column, Name2. If the relationship goes in both directions (the characters had sex with each other), then there will be two rows, representing each direction. This data can be displayed with a directed graph.

Usage

madmen2

Variables

Source

Wired Magazine 20.02, February 2012

See Also

For a list of successful sexual pairings, see madmen.


Marathon and half-marathon times

Description

This data set contains mrathon and half-marathon running times for 520 people. Each row represents one person's times.

Usage

marathon

Variables

Source

Downey, A.B. (2011), Think Stats, O'Reilly Media.


Means of results from an experiment on plant growth

Description

This data set simply has groupwise means of the PlantGrowth data set. The purpose of this summarized data set is to make it easy to use for example graphs.

Usage

pg_mean

Source

Dobson, A. J. (1983) An Introduction to Statistical Modelling, Chapman & Hall.

See Also

The source data set, PlantGrowth.


Plum root cuttings (long format)

Description

This is data from an experiment to investigate the effect of cutting length and planting time on the survival of plum root cuttings.

Usage

plum

Variables

Source

Hand, D.J., Daly, F., Lunn, A.D., McConway, K.J. & Ostrowski, E. (1994), A Handbook of Small Data Sets, Chapman & Hall.

Bartlett, M.S. (1935), Contingency table interactions, Journal of the Royal Statistical Society Supplement, 2, 248-252.

See Also

This data frame is in "long" format. See plum_wide for the same data in "wide" format.


Plum root cuttings (wide format)

Description

This is data from an experiment to investigate the effect of cutting length and planting time on the survival of plum root cuttings.

Usage

plum_wide

Variables

Source

Hand, D.J., Daly, F., Lunn, A.D., McConway, K.J. & Ostrowski, E. (1994), A Handbook of Small Data Sets, Chapman & Hall.

Bartlett, M.S. (1935), Contingency table interactions, Journal of the Royal Statistical Society Supplement, 2, 248-252.

See Also

This data frame is in "wide" format. See plum for the same data in "long" format.


Simple example data set

Description

This data set is for examples of R graphics.

Usage

simpledat

See Also

This data frame is in "wide" format. See simpledat_long for the same data in "long" format.


Simple example data set (long format)

Description

This data set is for examples of R graphics.

Usage

simpledat_long

See Also

This data frame is in "long" format. See simpledat for the same data in "wide" format.


Summarized ToothGrowth data

Description

Summarized ToothGrowth data

Usage

tg

Variables

See Also

ToothGrowth


Batting averages of the top hitters in Major League Baseball in 2001

Description

Batting statistics for the top 144 hitters in Major League Baseball in 2001.

Usage

tophitters2001

Variables

Variables:

Source

http://www.baseball-databank.org/.


Age distribution of population in the United States, 1900-2002

Description

These are the estimated (not counted) values by the U.S. Census.

Usage

uspopage

Variables

Source

U.S. Census Bureau, Statistical Abstract of the United States, 2003, HS-3: http://www2.census.gov/library/publications/2004/compendia/statab/123ed/hist/hs-03.pdf


Change in population of states in the U.S. between 2000 and 2010

Description

This data set represents the percent change in population of states in the U.S. from 2000 to 2010.

Usage

uspopchange

Variables

Source

U.S. Census Bureau, Statistical Abstract of the United States, 2012, Table 14. https://www2.census.gov/library/publications/2011/compendia/statab/131ed/2012-statab.pdf


Wind speed and direction

Description

This data set contains the wind speed and direction over the course of a single day in Chicago (February 29, 2012).

Usage

wind

Variables

Source

Great Lakes Environmental Research Laboratory: http://www.glerl.noaa.gov/metdata/chi/


World population estimates from 10,000 B.C. to 2,000 A.D.

Description

World population estimates from 10,000 B.C. to 2,000 A.D.

Usage

worldpop

Variables