-
Notifications
You must be signed in to change notification settings - Fork 230
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
qmplot not returning correct map type #281
Comments
I have the same problem. I always get terrain instead of the supplied maptype. |
Same problem here too. |
here too |
same for me as well |
I'm having the same issue when using
|
same issue. found a workaround with get_stamenmap() |
@kpanthagani , What's the work-around? |
enter the latitude and longitude of the boundaries of the map you want (example for Houston, TX) get stamenmap plot your data on it |
Has anybody found an answer to this question? I'm getting the same problem. |
@kpanthagani @bbolker does this solution also apply to qmplot? I have not had issue with setting the map boundaries manually and calling ggmap(). The issue I am seeing is when calling the map through qmplot(). For example: library(ggmap)
test <- data.frame('id' = c('0001','0002','0003'), 'latitude' = c(36.11768, 36.15525, 36.12812), 'longitude' = c(-86.72005, -86.73721, -86.77464))
qmplot(longitude, latitude, data = test, maptype = "toner-lite", color = I("red")) |
@kpanthagani User error on my end, I forgot to reload the library after installing from github. The current master branch (at least as of 37a8672) is working correctly. The bug appears to have been introduced in 771a71b and fixed in 12d4678 (as stated by @bbolker). @csdiehl, if you follow @bbolker's recommendations, it will work. The below steps are probably overkill, but it will make sure that the library is reloaded. detach("package:ggmap")
remove.packages("ggmap")
devtools::install_github("dkahle/ggmap")
.rs.restartR()
library(ggmap) |
When using qmplot(), the
maptype
variable seems to be ignored. See the below example.maptype
is set totoner-lite
but it appears to be usingterrain
instead.Probably unrelated, but for comparison,
ggmap(get_stamenmap())
seems to work fine.Below is the example that gives an error. It should be
toner-lite
but it is downloadingterrain
instead. I triedtoner
as well, but it gave the same results.Created on 2019-05-01 by the reprex package (v0.2.1)
Session info
The text was updated successfully, but these errors were encountered: