The antaresViz package allows to visualize simulation results. Several default layouts are available in the package, but, in some cases, the user will need to create a custom layout.

In this vignette we illustrate how to create a custom layout along the German inner borders.

library(antaresViz)
library(dplyr)
library(rnaturalearth)
library(ggplot2)
library(sf)

The coordinates of administratives regions of most countries can be found in the rnaturalearth package. Grouping these regions together often allows to obtain the desired layout. For instance:

Then the layout map can be generated from german_zones with a single line of code: