服务热线
178 0020 3020
library(ggplot2)
data1<-data.frame(city=c("A","B","C","D","E"),value=c("20","18","16","14","12"))
ggplot(data1,aes(x="",y=value,fill=city))+geom_bar(stat="identity",width=1)+coord_polar(theta="y")+labs(x="city",y="value")+ggtitle("R2-09")+theme(legend.title=element_blank(),legend.position="top")+theme(axis.ticks=element_blank())
data(singer,package="lattice")
ggplot(singer,aes(x=voice.part,y=height,fill=voice.part))+geom_boxplot()+theme(legend.title=element_blank(),legend.position="top")+ggtitle("R2-09")
附件