Skip to content

Instantly share code, notes, and snippets.

@ivyleavedtoadflax
Created September 10, 2015 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivyleavedtoadflax/a5499bde5e0fd92a253e to your computer and use it in GitHub Desktop.
Save ivyleavedtoadflax/a5499bde5e0fd92a253e to your computer and use it in GitHub Desktop.
---
title: "To draw a map"
author: "Matthew Upson"
date: "10 September 2015"
output: pdf_document
---
[http://stackoverflow.com/questions/32466608/accessing-the-internet-with-knitr](http://stackoverflow.com/questions/32466608/accessing-the-internet-with-knitr)
```{r echo=TRUE,warning=FALSE,results='markup',comment="",message=FALSE}
library(ggmap)
Btrcup <- get_map(
location = c(lon = 171.799669, lat = -42.851253),
zoom = 19,
maptype = "hybrid"
)
Btrcupmap <- ggmap(Btrcup)
Btrcupmap
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment