Learn R Programming

PASWR2 (version 1.0.5)

WHEATSPAIN: Wheat Surface Area in Spain

Description

Seventeen Spanish communities and their corresponding surface area (in hecatares) dedicated to growing wheat

Usage

WHEATSPAIN

Arguments

Format

A data frame with 17 observations on the following 3 variables:

  • community (a factor with levels Andalucia, Aragon, Asturias, Baleares, C.Valenciana, Canarias, Cantabria, Castilla-La Mancha, Castilla-Leon, Cataluna, Extremadura, Galicia, La Rioja, Madrid, Murcia, Navarre, and P.Vasco)

  • hectares (surface area measured in hectares)

  • acres (surface area measured in acres)

References

Ugarte, M. D., Militino, A. F., and Arnholt, A. T. 2015. Probability and Statistics with R, Second Edition. Chapman & Hall / CRC.

Examples

Run this code
# NOT RUN {
ggplot(data = WHEATSPAIN, aes(x = reorder(community, acres), y = acres)) + 
geom_bar(stat="identity", color = "orange", fill = "gold") + coord_flip() + 
labs(x = "") 
# }

Run the code above in your browser using DataLab