R2-40 第五次作业-雷达图作业

barcaqiu 2017-12-03 01:46:48 阅读: 1180

> library(ggplot2)

> library(fmsb)

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

> radarchart(cars,axistype = 1,seg=2,maxmin = F,plty=1,plwd=2,title = "R-40")

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

Rplot-r40-01.png

> library(devtools)

> install_github("ricardo-bion/ggradar")

> library(ggplot2)

> library(ggradar)

> mydata<-read.csv("D:\\learningr\\R2_5_data.csv",header = TRUE)

> ggradar(mydata,axis.label.size = 4,grid.line.width = 1,plot.title="R-40")+theme(legend.position = "bottom")


Rplot-r40-02.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

微信服务号