p4 <- ggplot() +
theme_bw() +
geom_sf(data = mb, fill = "white") +
geom_sf(data = mb_river, colour = "skyblue4") +
geom_sf(data = mb_lakes, fill = "lightblue") +
geom_sf(data = mb_cities) +
ggrepel::geom_label_repel(
data = mb_cities,
aes(label = name, geometry = geometry),
stat = "sf_coordinates",
min.segment.length = 0,
nudge_y = 0.02,
size = 2
) +
layer_spatial(site, shape = 23, colour = "red", fill = "red", size = 2) +
labs(tag = "a)") +
annotation_scale(location = "bl",
height = unit(0.05, "cm"),
pad_y = unit(0.5, "cm"),
pad_x = unit(1.1, "cm")) +
annotation_north_arrow(location = "br",
height = unit(0.5, "cm"),
width = unit(0.5, "cm"),
pad_y = unit(0.5, "cm"),
pad_x = unit(1.1, "cm")) +
theme(axis.text = element_blank(),
axis.ticks = element_blank(),
axis.title = element_blank(),
plot.margin = unit(c(0,0,0,0), "mm"),
panel.grid.major = element_blank(),
panel.grid.minor = element_blank(),
panel.border = element_blank(),
panel.background = element_blank())
map <- openmap(c(50.047, -99.936), c( 50.065, -99.909), zoom = NULL,
type = "esri-imagery", mergeTiles = TRUE)
sa_map2 <- openproj(map, projection = "+proj=longlat +datum=WGS84 +no_defs +type=crs")
sites <- data.frame(sites = c("1", "2", "3", "4"), lat = c(50.052472, 50.052288, 50.059197, 50.060114), long = c(-99.924327, -99.918839, -99.912919, -99.931479))
p5 <- OpenStreetMap::autoplot.OpenStreetMap(sa_map2) +
theme_void() +
geom_point(data = sites,
aes(x = long , y = lat ),
colour = "red", size = 2.5) +
ggrepel::geom_label_repel(data = sites,
aes(long, lat, label = sites),
size = 3, colour = "black",
min.segment.length = 0) +
geom_segment(aes(x = -99.934824, y = 50.048, xend = -99.927655, yend = 50.048), colour = "black", linewidth = 1) +
geom_segment(aes(x = -99.931150, y = 50.048, xend = -99.927655, yend = 50.048), colour = "white", linewidth = 1) +
annotate("label", x = -99.926, y = 50.048, label = "500m", fill = "lightgray") +
labs(tag = "b)")