Description Usage Format Details Source Examples
This data frame contains infromation on the per-capita consumption of food in the United States, between 1980 and 2005. The data is taken from the Statistical Abstract of the Unites States.
This data set is used as an example in the book "R in a Nutshell" from O'Reilly Media.
1 |
A data frame with 42 observations on the following 4 variables.
Food
a factor with levels Caloric sweeteners
, Dairy products
, Eggs
, Fish and Shellfist
, Flour and cereal products
, Poultry
, Red Meat
Units
a factor with levels Number
, Pounds
Year
a numeric vector
Amount
a numeric vector
This data set is used as an example in the book "R in a Nutshell" from O'Reilly Media.
http://www.census.gov/compendia/statab/cats/health_nutrition/food_consumption_and_nutrition.html
1 2 3 4 5 6 7 8 | data(consumption)
library(lattice)
dotplot(
Amount ~ Year | Food,
data=consumption,
aspect="xy",
scales=list(relation="sliced", cex=.4)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.