An open API service indexing awesome lists of open source software.

https://github.com/sckott/usgs

R interface to USGS APIs
https://github.com/sckott/usgs

Last synced: 12 months ago
JSON representation

R interface to USGS APIs

Awesome Lists containing this project

README

          

# usgs

### Install `usgs`

+ Development version from GitHub:

```R
install.packages("devtools")
require(devtools)
install_github("usgs", "ropensci")
require(usgs)
```

### Display a map in R

```R
> vcp_map(bbox="-1.1555796946844999E7,5220831.371255575,-1.1541665204054998E7,5230496.950050622", park="Agate_Fossil_Beds_NM", plot=TRUE)
```

![thing](https://raw.github.com/ropensci/usgs/master/inst/map.png)

### Download the map to a file

```R
> vcp_map(bbox="-1.1555796946844999E7,5220831.371255575,-1.1541665204054998E7,5230496.950050622", park="Agate_Fossil_Beds_NM")
File downloaded at ~/image.png
```