Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to hide place names on the map #340

Open
Chen-Xinlian opened this issue Dec 1, 2022 · 0 comments
Open

How to hide place names on the map #340

Chen-Xinlian opened this issue Dec 1, 2022 · 0 comments

Comments

@Chen-Xinlian
Copy link

I have successfully found the place I need on the map, but the map also shows the names of many places in other countries. How do I get a map that does not display the place names, so as to highlight the places I marked.
Thank you very much. Below is my R code:
myMap <- get_map(location=myLocation, source="stamen", maptype="terrain-background", crop=FALSE)
mymarkers <- read.delim('D:/my.txt', header=T)
ggmap(myMap) + geom_point(aes(x=Long, y=Lat, color=population),
data=mymarkers, size=4) +
xlab("Longitude") + ylab("Latitude") +
scale_color_manual(values=c("#C88AFF", "#EB746B", '#FCCC00', "#1EB5B8")) +
theme(axis.text.x = element_text(color="black", size = 15),
axis.text.y = element_text(color = 'black', size = 15),
axis.title.x = element_text(color = 'black', size = 18),
axis.title.y = element_text(color = 'black', size = 18),
legend.position="none")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant