ggplot2 pie plot with geom_text_repel
问题 I am plotting multiple pie plots with ggplot2 and succeeded in having the labels plotted in the right positions, as: df <- data.frame(annotation=rep(c("promoter", "intergenic", "intragene", "5prime", "3prime"), 3), value=c(69.5, 16, 10.7, 2.5, 1.3, 57.2, 18.8, 20.2, 2.1, 1.7, 50.2, 32.2, 15.3, 1.2, 1.1), treatment=rep(c("treated1", "treated2", "untreated"), c(5, 5, 5))) library(ggplot2) ggplot(data = df, aes(x = "", y = value, fill = annotation)) + geom_bar(stat = "identity") + geom_text(aes