-
Notifications
You must be signed in to change notification settings - Fork 15
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
scatterpie shape changes with the map from ggmap #27
Comments
Hi I'm here with the same issue, hoping someone will see this to offer some insight! |
This is also true when using geom_sf() and coord_sf() |
hi! I have this same issue. Has anyone figured out a solution to this problem? |
use |
Thanks, coord_equal() did not work for me, because I'm working maps plotted with WGS84 coordinate system and I get this error:
But I did figure out a workaround, by projecting everything into NAD83, and that solved the problem |
Hi,
I have been using the scatterpie package with ggmap package, aiming to show the genetic admixture on the map, here is my code:
library(tidyverse)
library(ggplot2)
library(ggmap)
library(scatterpie)
register_google(key = "xxxxx", write = TRUE)
d<-read.table("/Users/cuiwang/Desktop/map/Phmap.txt", header=TRUE)
a<-get_googlemap(center = c(mean(d$lon), mean(d$lat)), zoom = 1)
a<- ggmap(a)
a + geom_scatterpie(aes(x=long, y=lat,r=2), data=d, cols=c("Usnat","Usland","Med","AU","CN","EU"), color="#252728", alpha=1)
However, I got a picture with the pie chart skewed, as if it is also projected in the same way of the map. Is there any solution for this?
The text was updated successfully, but these errors were encountered: