I am using geom_sf to visualize some locations. This is my code:
ggplot(data = PR)+
geom_sf(fill = "lightgray",
col = "black",
show.legend = F)+
scale_fill_identity()+
theme(panel.grid.major = element_line(color = "gray",
linetype = "dashed",
size = 0.5),
panel.background = element_rect(fill = "aliceblue"))+
annotation_raster(img,
ymin = 18.35,
ymax = 18.5,
xmin = -67.8,
xmax = -66)+
geom_star(eulophia_transformed_with_lat_lon, mapping = aes(X,Y),
col = "black", fill = "red",
shape = 1, size = 2.5)+
coord_sf(crs = "ESRI:102003")
The map is what I am looking for, except that it looks tilted, I want it to be aligned with the axes. Is that possible?