服务热线
178 0020 3020
library(ggplot2)
data<- read.csv("R2-4.csv")
data<- data[order(data$值,decreasing=TRUE),]
b<- as.vector(data$代码)
c<- paste(b,"(",round(data$值/sum(data$值)*100,2),"%)",sep="")
ggplot(data,aes(x="",y=值,fill=代码))+geom_bar(stat="identity",width=1)+coord_polar(theta="y")+
+ labs(x="value",y="city",title="R2-33")+
+ theme(legend.title=element_blank(),legend.position="top")+
+ theme(axis.text.x=element_blank())+
+scale_fill_discrete(breaks=data1$代码,labels=c)
library(lattice)
library(ggplot2)
ggplot(singer,aes(x=voice.part,y=height,fill=voice.part))+geom_boxplot()+theme(legend.position="top",legend.title=element_blank())+
+ ggtitle("R2-33")
附件