R:如何删除饼图中的辅助文字?

时间:2019-03-09 18:55:14

标签: r ggplot2

我在R中具有以下饼图。如何从圆周围删除“ 0/100”,“ 25”,“ 50”,“ 75”?

enter image description here

我已经尝试过:

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())

当我用geom_text()添加行时出现问题

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

谢谢!

1 个答案:

答案 0 :(得分:0)

  • theme_void()

谢谢@markus