Skip to content

Commit

Permalink
vignette fix for deprecated args
Browse files Browse the repository at this point in the history
  • Loading branch information
rCarto committed Sep 18, 2018
1 parent 56f5114 commit d1cdd8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions vignettes/cartography.R
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ layoutLayer(title = "Demographic Trends", author = "cartography",
## ----propMap, fig.height=5, fig.width=7, message=FALSE, margin=TRUE------
## Plot OpenStreetMap tiles as basemap
# Download the tiles, nuts0.spdf extent
EUosm <- getTiles(spdf = nuts0.spdf, type = "osm", zoom = 4)
EUosm <- getTiles(x = nuts0.spdf, type = "osm", zoom = 4)
# Plot the tiles
tilesLayer(EUosm)

Expand Down Expand Up @@ -211,7 +211,7 @@ layoutLayer(title = "Demographic trends, 1999-2008", coltitle = "black",

## ----discLayer, fig.height=5, fig.width=7, margin=TRUE-------------------
# Get a SpatialLinesDataFrame of countries borders
nuts0.contig <- getBorders(spdf = nuts0.spdf)
nuts0.contig <- getBorders(x = nuts0.spdf)
class(nuts0.contig)

# Get the GDP per capita
Expand Down
4 changes: 2 additions & 2 deletions vignettes/cartography.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ layoutLayer(title = "Demographic Trends", author = "cartography",
```{r propMap, fig.height=5, fig.width=7, message=FALSE, margin=TRUE}
## Plot OpenStreetMap tiles as basemap
# Download the tiles, nuts0.spdf extent
EUosm <- getTiles(spdf = nuts0.spdf, type = "osm", zoom = 4)
EUosm <- getTiles(x = nuts0.spdf, type = "osm", zoom = 4)
# Plot the tiles
tilesLayer(EUosm)
Expand Down Expand Up @@ -258,7 +258,7 @@ layoutLayer(title = "Demographic trends, 1999-2008", coltitle = "black",

```{r discLayer, fig.height=5, fig.width=7, margin=TRUE}
# Get a SpatialLinesDataFrame of countries borders
nuts0.contig <- getBorders(spdf = nuts0.spdf)
nuts0.contig <- getBorders(x = nuts0.spdf)
class(nuts0.contig)
# Get the GDP per capita
Expand Down

0 comments on commit d1cdd8e

Please sign in to comment.