[英]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?我在 R 中有以下饼图。如何从圆圈周围删除“0/100”、“25”、“50”、“75”?
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() 行中添加时出现问题
geom_text(aes(label = paste0(round(percent), "%")), position = position_stack(vjust = 0.5), check_overlap = T)
Thank you!谢谢!
+ theme_void()
谢谢@markus
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.