服务热线
178 0020 3020
install.packages('fmsb')
library('fmsb')
mtcars
a<-mtcars[c(1:4),c(1:9)]
radarchart(a,axistype=1,seg=2,maxmin=F,vlabels=names(a[,2:9]),plty=1,pcol=1:7,plwd=1,title='R2-24')
legend('topleft',legend=c('Mazda RX4','Mazda RX4 Wag','Datsun 710','Hornet 4 Drive'),col=1:7,lwd=1,text.width=0.5,cex=0.5,bty='n')
install.packages('devtools')
install_github('ricardo-bion/ggradar')
install.packages('curl')
library(devtools)
library(curl)
library('ggplot2')
library('ggradar')
b<-read.csv('E:/R学习小组/5/R2_5_data.csv')
b
ggradar(b,axis.label.size=4,grid.line.width=1,group.point.size=4,group.line.width=1,legend.text.size=10,plot.title='R2-24')+theme(legend.position='bottom')+theme(plot.title=element_text(size=12,colour='black'))
附件