View source: R/plot_country_ansp.R
plot_country_ansp | R Documentation |
Plot country and relevant ANSP.
plot_country_ansp(
ansp_id,
name,
fl = 300,
buffer = 100,
ansps = pruatlas::ansps_ace_406
)
ansp_id |
optional, the ANSP ID of the relevant country, "ENAV" otherwise. It can be a regular expression, i.e. "DFS|ENAV" for matching Germany and Italy. |
name |
The name used to title the plot. |
fl |
the flight level of interest |
buffer |
Buffer around ANSP (km) |
ansps |
the |
A ggplot object with country and relevant ANSP.
## Not run:
plot_country_ansp("DFS", "Germany")
# Italy'ENAV has a hole above Rome...
plot_country_ansp("ENAV", "Italy (hole over Rome)")
# ...filling the hole, manually
enav <- pruatlas::ansps_ace_406 %>%
country_ansp(ansp_id = "ENAV", fl = 355) %>%
dplyr::mutate(min_fl = 355, max_fl = 355, id = "ENAV") %>%
smoothr::fill_holes(units::set_units(10000, km^2))
plot_country_ansp(ansp_id = "ENAV", name = "Italy", fl = 355, ansps = enav)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.