I have a data frame c
which include lat-long and name of some districts and some other information. my ultimate goal is to represent this information on the map.
using these codes I am made a map which its center is the city of Tehran.
teh_center <- as.numeric(geocode("tehran"))
map <- get_map(location = c(lon = 51.38897, lat = 35.6892), zoom = 14,
source = "google")
these codes are trying to expand the map throughout given lat-long (from here):
foo <-ggmap(map) +
scale_x_continuous(limits = c(51, 51.8), expand = c(0, 0)) +
scale_y_continuous(limits = c(35.45, 35.85), expand = c(0, 0))
at the end I tried to get map and information on it by:
foo +
geom_point(aes(x=lon, y=lat), data=c, col=c$decile, alpha=0.4, size = 3)
as you can see, the map is in center of image but in a small size. how can I fix it?