服务热线
178 0020 3020
任务 1
>library(fmsb)
>maxmin <- data.frame(mpg= c(35,10), cyl = c(8,4),disp = c(500,50), hp=c(350,50), drat=c(5.0,2.5), wt = c(5.5,1.5), qsec = c(23.0,14.5), vs = c(1,0), am = c(1,0))
>mtcars <- mtcars[,1:9]
> dat_1 <-rbind(maxmin,mtcars[29:32,])
> radarchart(dat_1, axistype = 1, seg = 2, centerzero = F,plty = 1, pcol = color_1, cglcol = "black",title="R2-29 CC")
> legend("left",lty = 1, lwd = 2.5, cex= 0.75, legend = rownames(mtcars[29:32,]),pch = 20, col = color_1,pt.cex = 1.25,bty = "n")
任务2
>library(ggradar)
> data <-read.csv(file.choose())
> ggradar(data,axis.label.size = 7,grid.label.size = 5,legend.text.size = 8,background.circle.colour = "gray")+ggtitle("R2-29 CC")+theme(legend.position = "top")
附件