Learn R Programming

PASWR2 (version 1.0.5)

WHEATUSA2004: USA Wheat Surface 2004

Description

USA's 2004 harvested wheat surface by state

Usage

WHEATUSA2004

Arguments

Format

A data frame with 30 observations on the following 2 variables:

  • states (a factor with levels AR, CA, CO, DE, GA, ID, IL, IN, KS, KY, MD, MI, MO, MS, MT, NC, NE, NY, OH, OK, OR, Other, PA, SC, SD, TN, TX, VA, WA, and WI)

  • acres (wheat surface area measured in thousands of 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 = WHEATUSA2004, aes(x = reorder(states, acres), y = acres)) + 
geom_bar(stat = "identity", color = "gold", fill = "yellow") + coord_flip() + 
labs(x = "") 
# }

Run the code above in your browser using DataLab