服务热线
178 0020 3020
任务一:
library(ggplot2)
library(ggradar)
library(fmsb)
mtcars
data1=mtcars[c(29:32),c(1:9)]
data1
radarchart(data1,axistype=1,seg=2,plty =1,plwd=2,maxmin = FALSE,title="R2-22")
legend("left",c("Ford Pantera L","Ferrari Dino","Maserati Bora","Volvo 142E"),col=c("black","red","green","blue"),bty="n",lty=0.6,pch=20)
任务二:
devtools::install_github("ricardo-bion/ggradar", dependencies=TRUE)
library(ggradar)
data=read.csv(file.choose())
data
ggradar(data,axis.label.size=4,grid.label.size = 6,legend.text.size = 8)+labs(title="R2-22")
附件