R2-06 第5期ggplot2雷达图

dean 2017-12-03 21:27:10 阅读: 991

part1


library(ggplot2)

library(fmsb)

library(dplyr)

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

radarchart(cars, axistype =2,seg = 2, maxmin=F,

           centerzero = F, 

           pty = 16,

           plty =1,

           plwd = 1,

           title = "R2-06-dean" )

legend(-2.4,0.8,c("car1","car2", "car3", "car4"), col = c("black","red","green","blue"), lty = 1, pch = 10,bty = "l")

5-1.png

part2


library(devtools)


library(ggplot2)


library(ggradar)


data<-read.csv(choose.files())


ggradar(data,axis.label.size = 6,grid.line.width = 1,plot.title="R2-06-dean")+theme(legend.position = "left")

5-2.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

微信服务号