其他
R作图也是杠杠的(1)
> city1 <- c(30.34, 34.98, 25.58, 6.48, 2.43)
> city2 <- c(37.49, 35.56, 17.99, 6.56, 2.65)
> label<-c("a","b","c","d","e")
> percent1<-round(city1/sum(city1)*100,digits = 2)
> label1<-paste(label,percent1," ")> label1<-paste(label,percent1,sep=" ")> label1<-paste(label1,"%",sep="")> pie(city1,init.angle = 180,labels=label1,xlab="city1",clockwise = T,border = F,col = gray(seq(0.9,0.3,length=6)))