Thank you for the excellent package! As I was planning to use it for my thesis work, I was trying it out and found an issue with the scaling of the pies. When I change the ratio in coord_fixed(), the pies get elongated. For example,
This is not an issue arising from the package, as this happens with any geom object. Sorry about that. I found a workaround myself -- I simply scale the data rather than attempting to scale the geom.
Thank you for the excellent package! As I was planning to use it for my thesis work, I was trying it out and found an issue with the scaling of the pies. When I change the ratio in coord_fixed(), the pies get elongated. For example,
d <- data.frame(x=rnorm(5), y=rnorm(5)) d$A <- abs(rnorm(5, sd=1)) d$B <- abs(rnorm(5, sd=2)) d$C <- abs(rnorm(5, sd=3)) ggplot() + geom_scatterpie(aes(x=x, y=y), data=d, cols=c("A", "B", "C")) + coord_fixed()
Works great! but this one elongates the pies: ggplot() + geom_scatterpie(aes(x=x, y=y), data=d, cols=c("A", "B", "C")) + coord_fixed(ratio = 0.5)
Is there a workaround?