YuLab-SMU / scatterpie

:art: scatter pie plot
https://cran.r-project.org/package=scatterpie
60 stars 16 forks source link

scale_radius or other explanation of how to control radius #24

Open jebyrnes opened 5 years ago

jebyrnes commented 5 years ago

This is an AWESOME package. But when I plot using it, I get very small pies! And changing size doesn't work well at all - only works on the black outlines and not the fills. If I set color = NA, I still have the same small pies! Using the code from the vignette, the below should produce two plots with different point sizes. But it does not.

Is there a way to either have a scale_scatterpie_radius_manual control or maybe just an easy way to manually set the size of those pies? Even to have size with with the fill and not just the colored part of the pie would be great!

#small pies
ggplot() + geom_scatterpie(aes(x=long, y=lat, group=region), data=d,
                           cols=LETTERS[1:4], radius = 1, color = NA) + coord_equal()

#large pies
ggplot() + geom_scatterpie(aes(x=long, y=lat, group=region), data=d,
                           cols=LETTERS[1:4], radius = 10, color = NA) + coord_equal()
shu251 commented 3 years ago

Is there resolution on how to modify the pie size? @GuangchuangYu I've tried following the vignette, but it does not work.

nyrvelli commented 1 year ago

try pie_scale: from http://www.endmemo.com/r/geom_scatterpie.php