foods | R Documentation |
This data set contains scores for the amount of use of 15 different food
types in 15 European countries, and information of obesity (BMI exceeding 30
kg/m^2
) in these countries.
foods
A data frame with 15 observations (rows) and 17 variables (columns).
Column name | Data type | Description | Values | |
[,1] | Country | factor | 15 countries from Europe | (Austria...Switzerland) |
[,2] | BMI.30 | numeric | Percentage of people with BMI > 30 | (19.5 - 27.8) |
The remaining columns, foods[, 3:17]
, are the food variables. A score
between 0 and 100 gives the amount of use for each food type in the given
country.
It was of interest to study how the composition of food co-varies between the
countries, and if food consumption in some way can predict obesity as
measured by BMI.30
.
# The food variables
colnames(foods)[3:17]
# Scatterplot matrix of BMI.30 and the six first food variables
pairs(foods[,c(2:8)], lower.panel = NULL, panel = panel.smooth)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.