date()
## [1] "Fri Nov 16 03:14:45 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(maps)
## Loading required package: maps
## Warning: package 'maps' was built under R version 2.15.2
cs = "wisconsin"
map("state", region = cs)
(3) Use a function from the ggmap package to determine the latitude and longitude of 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