{"id":2130,"date":"2022-02-01T22:51:54","date_gmt":"2022-02-01T14:51:54","guid":{"rendered":"http:\/\/cnliutz.uicp.io\/?p=2130"},"modified":"2022-02-01T22:51:54","modified_gmt":"2022-02-01T14:51:54","slug":"r%e3%80%81python%e7%bb%98%e5%9b%be%e7%bd%91","status":"publish","type":"post","link":"http:\/\/g1n29wqq.ipyingshe.net:5347\/?p=2130","title":{"rendered":"R\u3001python\u7ed8\u56fe\u7f51"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.r-graph-gallery.com\/index.html\">The R Graph Gallery \u2013 Help and inspiration for R charts (r-graph-gallery.com)<\/a><\/p>\n\n\n\n<p>Example\uff1a<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Library<\/h1>\n\n\n\n<p>library(fmsb)<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Create data: note in High school for Jonathan:<\/h1>\n\n\n\n<p>data &lt;- as.data.frame(matrix( sample( 2:20 , 10 , replace=T) , ncol=10))<br>colnames(data) &lt;- c(&#8221; \u6570\u5b66&#8221; , &#8220;english&#8221; , &#8220;biology&#8221; , &#8220;music&#8221; , &#8220;R-coding&#8221;, &#8220;data-viz&#8221; , &#8220;french&#8221; , &#8220;physic&#8221;, &#8220;statistic&#8221;, &#8220;sport&#8221; )<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">To use the fmsb package, I have to add 2 lines to the dataframe: the max and min of each topic to show on the plot!<\/h1>\n\n\n\n<p>data &lt;- rbind(rep(20,10) , rep(0,10) , data)<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Check your data, it has to look like this!<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">head(data)<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">The default radar chart<\/h1>\n\n\n\n<p>radarchart(data)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The R Graph Gallery \u2013 Help and inspirati <span class=\"readmore\"><a href=\"http:\/\/g1n29wqq.ipyingshe.net:5347\/?p=2130\">Continue Reading<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-2130","post","type-post","status-publish","format-standard","hentry","category-r"],"_links":{"self":[{"href":"http:\/\/g1n29wqq.ipyingshe.net:5347\/index.php?rest_route=\/wp\/v2\/posts\/2130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/g1n29wqq.ipyingshe.net:5347\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/g1n29wqq.ipyingshe.net:5347\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/g1n29wqq.ipyingshe.net:5347\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/g1n29wqq.ipyingshe.net:5347\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2130"}],"version-history":[{"count":0,"href":"http:\/\/g1n29wqq.ipyingshe.net:5347\/index.php?rest_route=\/wp\/v2\/posts\/2130\/revisions"}],"wp:attachment":[{"href":"http:\/\/g1n29wqq.ipyingshe.net:5347\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/g1n29wqq.ipyingshe.net:5347\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2130"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/g1n29wqq.ipyingshe.net:5347\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}