I need to flip my x-axis lim from (-71.0,-69.5) to (-69.5,-71.0). I also need to add a world map to display my points onto.
This is my current line of code.
library(ggplot2)
library(readxl)
#Upload dataset
setwd("Behavior Data/STATE_SPACE_MODEL_SCRIPT/")
data <- read_excel("234798 ssm.xlsx")
View(data)
plot <- ggplot(data, aes(x=lon, y=lat, color=b),xlim=(c(-69.5, -71)) +
geom_point(size=2)
plot
*
xlim in this context does nothing. Als,o I want to overlay my plot onto a world map.

Make sure that the following packages are installed. If in doubt install them with:
Get the gemetry data for the world map.
Create some random coordinates. Use
sf::st_as_sf()to turn them into ansfobject with the samecrsofworld.Plot the world map with points on top.
Plot the world map with points on top and set
xlimto specific values