R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

library(foreign)
dat <- read.dbf("~/Documents/Kavita/Semester 4/Anly 512/Problem 5/pennsylv.dbf")
library(ggplot2)
library(ggmap)
## Google Maps API Terms of Service: http://developers.google.com/maps/terms.
## Please cite ggmap if you use it: see citation("ggmap") for details.

Including Plots

## Source : https://maps.googleapis.com/maps/api/staticmap?center=40.995052,-77.505472&zoom=7&size=640x640&scale=2&maptype=terrain&language=en-EN

## Source : https://maps.googleapis.com/maps/api/staticmap?center=39.992417,-75.159234&zoom=11&size=640x640&scale=2&maptype=hybrid&language=en-EN

## Source : https://maps.googleapis.com/maps/api/staticmap?center=Philadelphia&zoom=14&size=640x640&scale=2&maptype=terrain
## Source : https://maps.googleapis.com/maps/api/geocode/json?address=Philadelphia
## Source : http://tile.stamen.com/toner/14/4769/6204.png
## Source : http://tile.stamen.com/toner/14/4770/6204.png
## Source : http://tile.stamen.com/toner/14/4771/6204.png
## Source : http://tile.stamen.com/toner/14/4772/6204.png
## Source : http://tile.stamen.com/toner/14/4769/6205.png
## Source : http://tile.stamen.com/toner/14/4770/6205.png
## Source : http://tile.stamen.com/toner/14/4771/6205.png
## Source : http://tile.stamen.com/toner/14/4772/6205.png
## Source : http://tile.stamen.com/toner/14/4769/6206.png
## Source : http://tile.stamen.com/toner/14/4770/6206.png
## Source : http://tile.stamen.com/toner/14/4771/6206.png
## Source : http://tile.stamen.com/toner/14/4772/6206.png
## Warning: Removed 268 rows containing missing values (geom_point).

## Source : https://maps.googleapis.com/maps/api/staticmap?center=40.860195,-77.45448&zoom=8&size=640x640&scale=2&maptype=roadmap&language=en-EN
## Warning: Removed 14 rows containing missing values (geom_point).

## Source : https://maps.googleapis.com/maps/api/staticmap?center=40.860195,-77.45448&zoom=7&size=640x640&scale=2&maptype=hybrid&language=en-EN
## Warning: Removed 193 rows containing missing values (geom_point).