mapLayout {antaresViz}R Documentation

Place areas of a study on a map

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

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.

Details

With map_builder option, you can build a quiet custom map using spMaps package. This package help you to build SpatialPolygonsDataFrame on Europe. Moreover, you can use two options in the module :

Value

An object of class mapLayout.

See Also

plotMapLayout

Examples

## 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)


[Package antaresViz version 0.18.0 Index]