date()
## [1] "Sat Nov 17 09:28:14 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.
x = trees$Girth
y = trees$Height
cor(x, y)
## [1] 0.5193
(2) Create a map showing the boundary for the state of Wisconsin.
require(maps)
## Loading required package: maps
## Warning: package 'maps' was built under R version 2.15.2
map("state", "Wisconsin")
(3) Use a function from the ggmap package to determine the latitude and longitude of the Doak Campbell Stadium.
require(ggmap)
## Loading required package: ggmap
## Warning: package 'ggmap' was built under R version 2.15.2
## Loading required package: ggplot2
geocode("Doak Campbell Stadium, Tallahassee, FL")
## lon lat
## 1 -84.3 30.44