mapLayout: Place areas of a study on a map

Description Usage Arguments Value See Also Examples

Description

This function launches an interactive application that let the user place areas of a study on a map. the GPS coordinates of the areas are then returned and can be used in functions. This function should be used only once per study. The result should then be saved in an external file and be reused.

Usage

1
2
mapLayout(layout, what = c("areas", "districts"), map = getSpMaps(),
  map_builder = TRUE)

Arguments

layout

object returned by function readLayout

what

Either "areas" or "districts". Indicates what type of object to place on the map.

map

An optional SpatialPolygons or SpatialPolygonsDataFrame object. See getSpMaps

map_builder

logical Add inputs for build custom map ? Defaut to TRUE.

Value

An object of class mapLayout.

See Also

plotMapLayout

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
# Read the coordinates of the areas in the Antares interface, then convert it
# in a map layout.
layout <- readLayout()
ml <- mapLayout(layout)

# visualize mapLayout
plotMapLayout(ml)

# Save the result for future use
save(ml, file = "ml.rda")


## End(Not run)

rte-antares-rpackage/bpN documentation built on May 31, 2019, 2:52 p.m.