R2-30第五次雷达图作业提交

土貉 2017-12-05 22:46:55 阅读: 874

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")

 

001.png

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"))

002.png

 
邀请讨论

附件

{{f.title}} 大小 {{f.file_size}} 下载 {{f.count_download}} 金币 {{f.count_gold}}
{{item.nick_name}} 受邀请回答 {{item.create_time}}
{{item.refer_comment.nick_name}} {{item.refer_comment.create_time}}

附件

{{f.title}} 大小 {{f.file_size}} 下载 {{f.count_download}} 金币 {{f.count_gold}}
切换到完整回复 发送回复
赞({{item.count_zan}}) 踩({{item.count_cai}}) 删除 回复 关闭
科研狗©2015-2024 科研好助手,京ICP备20005780号-1 建议意见

服务热线

178 0020 3020

微信服务号