Skip to content

Instantly share code, notes, and snippets.

View Pakillo's full-sized avatar
🌳
Living the dream

Francisco Rodriguez-Sanchez Pakillo

🌳
Living the dream
View GitHub Profile
@Pakillo
Pakillo / quicktopomap.R
Created January 8, 2014 10:24
Creating quick topographical map in R
library(dismo)
# Get elevation data from the internet for specified coordinates
elev <- getData("SRTM", download=T, lon=-76.6, lat=18.1)
# Specify desired extent
ext <- c(-76.68, -76.65, 18.08, 18.11)
ext2 <- c(-76.675, -76.655, 18.088, 18.10) # for plotting
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.