beautiful Pie Charts with R
问题 Let's say I have this simple data: mydata <- data.frame(group=c("A", "B", "0", "AB"), FR=c(20, 32, 32, 16)) If I want to create a pie chart from this dataframe I can do: with(mydata,pie(FR, labels=paste0(as.character(group), " ", FR, "%"), radius=1)) It's quite simple but acceptable. How can I get something similar with ggplot2 or lattice? After much trial and error I've got ggplot(mydata, aes(x = factor(1), y=FR,fill=factor(group)) ) + geom_bar(width = 1,stat="identity")+coord_polar(theta =