{"id":515,"date":"2022-05-30T00:00:19","date_gmt":"2022-05-29T16:00:19","guid":{"rendered":"https:\/\/linguopeng.top\/?p=515"},"modified":"2022-05-30T00:00:20","modified_gmt":"2022-05-29T16:00:20","slug":"%e7%9b%b8%e5%85%b3%e6%80%a7%e7%83%ad%e5%9b%be-2","status":"publish","type":"post","link":"https:\/\/linguopeng.top\/?p=515","title":{"rendered":"\u76f8\u5173\u6027\u70ed\u56fe"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>library(readxl)\r\nlibrary(ggcorrplot)\r\nlibrary(ggthemes)\r\ndata &lt;- read_xlsx(\"correlation2.xlsx\",sheet = 2)\r\ndata&lt;-as.data.frame(data)\r\nrownames(data)&lt;-data$id\r\ndata&lt;-data&#91;,-1]\r\ncorr&lt;-round(cor(t(data)),3)\r\np.mat&lt;-round(cor_pmat(t(data)),3)\r\nggcorrplot(corr)\r\nggcorrplot(corr,method = \"circle\")\r\nggcorrplot(corr,method = \"circle\",\r\n           hc.order = T,hc.method = \"ward.D\",\r\n           outline.col = \"white\",ggtheme = theme_bw(),\r\n           type = \"upper\",\r\n           colors = c(\"#6D9EC1\",\"white\",\"#E46726\"),\r\n           lab=T,lab_size = 2,\r\n           p.mat = p.mat,insig = \"blank\")\r          <\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/linguopeng.top\/wp-content\/uploads\/2022\/05\/Rplot.jpg'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1500\" height=\"1087\" data-original=\"https:\/\/linguopeng.top\/wp-content\/uploads\/2022\/05\/Rplot.jpg\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-516\"\/><\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-515","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/linguopeng.top\/index.php?rest_route=\/wp\/v2\/posts\/515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linguopeng.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linguopeng.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linguopeng.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linguopeng.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=515"}],"version-history":[{"count":1,"href":"https:\/\/linguopeng.top\/index.php?rest_route=\/wp\/v2\/posts\/515\/revisions"}],"predecessor-version":[{"id":517,"href":"https:\/\/linguopeng.top\/index.php?rest_route=\/wp\/v2\/posts\/515\/revisions\/517"}],"wp:attachment":[{"href":"https:\/\/linguopeng.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linguopeng.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linguopeng.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}