简体   繁体   中英

R: How to remove helper text in pie chart?

I have the following pie chart in R. How do I remove the "0/100", "25", "50", "75" from around the circle?

在此处输入图片说明

I've already tried this:

theme(axis.text = element_blank(), 
        axis.ticks = element_blank(),
        panel.grid.major.y = element_blank(), 
        panel.grid.minor.y = element_blank(), 
        panel.grid = element_blank())

The issue appears when I add in the line with geom_text()

geom_text(aes(label = paste0(round(percent), "%")), position = position_stack(vjust = 0.5), check_overlap = T)

Thank you!

+ theme_void()

谢谢@markus

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM