Putting two Pie Charts in one
问题 I am trying to create a pie chart with my following data in R: 2009 2010 US 10 12 UK 13 14 Germany 18 11 China 9 8 Malaysia 7 15 Others 13 15 The command I am using is: slices<-c(10,13,18,9,7,13,12,14,11,8,15,15) lbls <- c("US","UK","Germany","China", "Malaysia", "Others","US","UK","Germany","China", "Malaysia", "Others") pct <- round(slices/sum(slices)*100) lbls <- paste(lbls,"%",sep="") lbls <- paste(lbls, pct) pie(slices,labels = lbls, col=rainbow(length(lbls)), main="Pie Chart of