Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pvictor committed Feb 24, 2020
2 parents 6b8c371 + 960339e commit 954c795
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions vignettes/article/creating_new_layouts.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,17 @@ code:
map <- as(st_transform(german_zones, crs = 4326), "Spatial")
```

This `map` is then used to generate a `mapLayout` object:

```{r, eval=FALSE}
zone_layout <- list(
coords = coords,
links = links,
map = map,
all_coords = coords
)
class(zone_layout) <- "mapLayout"
attr(zone_layout, "type") <- "areas"
```


0 comments on commit 954c795

Please sign in to comment.