Skip to content

Commit

Permalink
final small changes to vignette. Ready for v0.1.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
jhollist committed Mar 16, 2017
1 parent 298a5e1 commit 7da2c5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vignettes/introduction_to_elevatr.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Sys.sleep(2)

The process is the same for a SpatialPoints and a SpatialPointsDataFrame object. The SpatialPointsDataFrame example is shown below.

```{r examples_sp2, eval=T}
```{r examples_sp2}
# Example using SpatialPointsDataFrame
# prj is taken from the SpatialPointsDataFrame object
# api_key is taken from environment variable mapzen_key
Expand Down Expand Up @@ -171,7 +171,7 @@ As mentioned a data frame with x and y columns, a `sp` object, or a `raster` obj

There is no difference in using the `sp` and `raster` input data types. The data frame requires a `prj`. We show examples using a `SpatialPolygonsDataFrame` and a data frame. The zoom level (`z`) defaults to 9 (a trade off between resolution and time for download), but different zoom levels are often desired. For example:

```{r get_raster, eval=NOT_CRAN}
```{r get_raster}
# SpatialPolygonsDataFrame example
data(lake)
elevation <- get_elev_raster(lake,z = 9)
Expand Down

0 comments on commit 7da2c5b

Please sign in to comment.