I'm trying to make the Shiny app, and part of it consists of the plot of the city of Baltimore, and as soon as I do this, I will print other data on this map.
I try "rworldmap", "raster" and "ggmap", but I don’t understand how to set the right parameters to make it work, the time when I was closer is the following:
library(rworldmap)
newmap <- getMap(resolution = "low")
plot(newmap)
library(rworldmap)
newmap <- getMap(resolution = "low")
plot(newmap)
plot(newmap,
xlim = c(-39.3750, -76.7226),
ylim = c(39.1800, -76.5254),
asp = 1
)
It seems to me the region of South America, and ... upside down: S
The latitude and longitude in theory should be something like this: (39.371846, -76.720619) (39.198588, -76.491280)
Does anyone know how to continue this?
Sorry for my English,
Thank!:)
PS: If this can help, then what I will print later will be the coordinates.