服务热线
178 0020 3020
library("fmsb")
maxmin <- data.frame( mpg=c(21.4, 15), cyl=c(8,4), disp=c(351, 121), hp=c(335,109), drat=c(4.22, 3.54), wt=c(4,2), qsec=c(20,10), vs=c(1, 0), am=c(1,0))
datar51<-mtcars[(c29:32),]
datar511<-rbind(maxmin,datar51)
radarchart(datar511,axistype = 1,seg=2,pty = 16,plty = 1,plwd = 3,centerzero=F,title="R2-30")
legend(-1.8,0.5, c("Ford Pantera L","Ferrari Dino","Maserati Bora", "Volvo 142E"),col = c("black","red","green","blue"),lty = 1, pch = 20,bty = "n")
install.packages("devtools")
devtools::install_github("ricardo-bion/ggradar")
datar52<-read.csv("C:/Users/linger/Desktop/第五次作业/R2_5_data.csv")
library("ggradar")
ggradar(datar52,axis.label.size =4,group.point.size = 2,group.line.width = 1,grid.line.width=1,plot.title = "R2-30", grid.label.size =5,legend.text.size =11)+theme(legend.position = "bottom")+theme(plot.title=element_text(size=13,colour="black"))
附件