Exam # 4

Arielle Mundy

date()
## [1] "Fri Nov 16 12:51:13 2012"

Due Date: November 26, 2012, 2pm
Total Points: 30; Each question is worth 10 points.

(1) The data frame trees provides measurements of the girth, height, and volume of timber in 31 felled black cherry trees. The variable Girth is the tree diameter in inches and the variable Height is the height in feet. Determine the correlation between Girth and Height.

cor(trees$Girth, trees$Height)
## [1] 0.5193

(2) Create a map showing the boundary for the state of Wisconsin.

require(ggmap)
## Loading required package: ggmap
## Warning: package 'ggmap' was built under R version 2.15.2
## Loading required package: ggplot2
require(mapproj)
## Loading required package: mapproj
## Warning: package 'mapproj' was built under R version 2.15.2
## Loading required package: maps
## Warning: package 'maps' was built under R version 2.15.2
map("state", "wisconsin")

plot of chunk unnamed-chunk-3

(3) Use a function from the ggmap package to determine the latitude and longitude of Doak Campbell Stadium.

require(ggmap)
geocode("Doak Campbell Stadium, Tallahassee, Florida")
##     lon   lat
## 1 -84.3 30.44