I wish to rotate a ggplot2 map annotation. At this moment, through the following line:
annotate("rect", xmin=c(-8.5), xmax=c(-9), ymin=c(42.1) , ymax=c(42.35), alpha=0.2, color="black")
I achieved to create this map:
Despite this, what I'm looking for is the next:
Do you have any idea on how to achieve it?
Many thanks in advance!
Note: here is the full ggplot code for this map:
ggm2 <- ggplot() +
theme_bw() +
geom_sf(data = eu) +
geom_sf(data = Spain) +
xlab("") +
ylab("") +
#xlab("Longitude") + ylab("Latitude") +
coord_sf(xlim = c(-10.5, -6.5), ylim = c(41.5, 44.5), expand = FALSE) +
annotation_scale(location = "bl", width_hint = 0.5) +
annotate(geom = "text", x = -9.3, y = 44, label = "Atlantic Ocean",
fontface = "italic", color = "grey22", size = 6, angle=35) +
annotate(geom = "text", x = -7.75, y = 41.65, label = "Portugal",
fontface = "italic", color = "grey22", size = 5) +
annotation_north_arrow(location = "bl", which_north = "true",
pad_x = unit(0.65, "in"), pad_y = unit(0.5, "in"),
style = north_arrow_fancy_orienteering) +
annotate("rect", xmin=c(-8.5), xmax=c(-9), ymin=c(42.1) , ymax=c(42.35),
alpha=0.2, color="black")