
Position of the "Oslo" title label for the insert-Oslo map layout
Source:R/data_norway_position_title_insert_oslo.R
nor_xxx_position_title_insert_oslo_bxxxx_insert_oslo_dt.RdA single-row data.table giving the longitude/latitude coordinates at which
the "Oslo" text label should be placed when using an _insert_oslo
map dataset.
Usage
nor_xxx_position_title_insert_oslo_b2024_insert_oslo_dt
nor_xxx_position_title_insert_oslo_b2020_insert_oslo_dt
nor_xxx_position_title_insert_oslo_b2019_insert_oslo_dt
nor_xxx_position_title_insert_oslo_b2017_insert_oslo_dtFormat
Each dataset is a one-row data.table:
- long
Longitude in decimal degrees (WGS84) for the label anchor.
- lat
Latitude in decimal degrees (WGS84) for the label anchor.
An object of class data.table (inherits from data.frame) with 1 rows and 2 columns.
An object of class data.table (inherits from data.frame) with 1 rows and 2 columns.
An object of class data.table (inherits from data.frame) with 1 rows and 2 columns.
Details
Datasets are provided for 2024, 2020, 2019 and 2017. All four are identical, because the magnified Oslo copy sits in the same place in every insert-Oslo map. Each holds the single coordinate longitude 19.75, latitude 64.5. That coordinate is above the magnified copy, which spans longitude 17.99 to 23.08 and latitude 60.39 to 63.96.
The label is granularity-free, which is what xxx in the name means:
the same coordinate serves the county and the municipality insert-Oslo maps.
See also
vignette("layout", package = "csmaps") places this label on
nor_county_map_b2024_insert_oslo_dt. No vignette uses the 2020, 2019
or 2017 datasets.
Other insert-Oslo layout datasets:
nor_county_map_bxxxx_insert_oslo_dt,
nor_municip_map_bxxxx_insert_oslo_dt
Examples
# 2020 borders
library(ggplot2)
q <- ggplot(mapping = aes(x = long, y = lat))
q <- q + geom_polygon(
data = csmaps::nor_municip_map_b2020_insert_oslo_dt,
mapping = aes(group = group),
color = "black",
fill = "white",
linewidth = 0.4
)
q <- q + annotate(
"text",
x = csmaps::nor_xxx_position_title_insert_oslo_b2020_insert_oslo_dt$long,
y = csmaps::nor_xxx_position_title_insert_oslo_b2020_insert_oslo_dt$lat,
label = "Oslo"
)
q <- q + theme_void()
q <- q + coord_quickmap()
q