YuLab-SMU / scatterpie

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

geom_scatterpie Removal of Black Radius Line for 100% pies #4

Closed keaan95 closed 7 years ago

keaan95 commented 7 years ago

Dear author,

Thank you for this page. Ever since ggsubplot was removed from CRAN, the scatterpie package has become invaluable.

For pies where I have 100%, is it possible to remove the radius black line.

I have done color=NA in my geom_scatterpie function but to keep the outline border and just remove the radius line, is it possible?

GuangchuangYu commented 7 years ago

No. it is impossible.

hmoral commented 7 years ago

Hello GuangchuangYu,

Great functions! very useful! I was wondering is is possible to use specific colour for the pie charts from geom_scatterpie() I tried + scale_colour_manual(value=COLORS) But it did not worked. Any ideas?

GuangchuangYu commented 7 years ago

try scale_fill_manual(value=COLORS)

hmoral commented 7 years ago

it worked! Thanks

kbannarm commented 6 years ago

Is there a way to indicate some pies by group, i.e. have a coloured border on the pies, indicating their group membership?

Kailewang commented 3 years ago

Dear author,

Thank you for this page. Ever since ggsubplot was removed from CRAN, the scatterpie package has become invaluable.

For pies where I have 100%, is it possible to remove the radius black line.

I have done color=NA in my geom_scatterpie function but to keep the outline border and just remove the radius line, is it possible?

Hi @keaan95 , not sure if you have found the solution for this. I also met similar issue recently, the way I did was I draw another layer scatterpie with settings (color=NA and a tiny bit of smaller radius) on top of the original scatterpie. something like: ggplot()+ geom_scatterpie(data=clst.xy, aes(x=x, y=y, r=radius*1.2), cols=c("bg1","bg2"), color="black")+ geom_scatterpie(data=clst.xy, aes(x=x, y=y, r=radius*1.18), cols=c("bg1","bg2"), color=NA)