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

木爻子木 2017-12-05 13:00:52 阅读: 909

R2.4.1

install.packages(fmsb)

library(fmsb)

library(ggplot2)

cars<-mtcars[c(29:32),c(1:9)]

radarchart(cars,axistype=1,maxmin = F,plty=1,pty=16,plwd=2,axislabcol="grey",title="R-25")

legend("left",c("Ford Pantera L","Ferrari Dino", "Maserati Bora", "Volvo 142E"), col = c("black","red","green","blue"), lty = 1, cex = 0.8,pch = 20,bty = "n")



R2.4.2

library(ggplot2)

install.packages("devtools")

install_github("ricardo-bion/ggradar")

library(ggradar)

setwd("D:/R language/R2/R2.5")

ra <- read.csv("R2_5_data.csv")

ggradar(ra, axis.label.size = 5, axis.line.colour = "black", group.line.width = 2,group.point.size = 4, background.circle.colour ="#D7D6D1",grid.label.size=5,legend.text.size=10)+theme(legend.title=element_blank(),legend.position = "top")+labs(title = "R2-25")


 
邀请讨论

附件

{{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

微信服务号