服务热线
178 0020 3020
2.4.1
setwd("D:/R language/R2/R2.4")
library(ggplot2)
A <- read.csv("R.4-1.csv")
C <- ggplot(A,aes(x=代码,fill=代码))
C + geom_bar(width = 1) + coord_polar(theta = "x")+ labs(x="value", y="city",title = "R2-25")+theme(legend.title=element_blank(),legend.position = "top")
2.4.2
library(lattice)
singer
b <- ggplot(singer,aes(voice.part,height,fill=voice.part))
b+geom_boxplot()+labs(title = "R2-25")+theme(legend.title=element_blank(),legend.position = "top")
附件