{"id":1917,"date":"2023-02-02T17:32:29","date_gmt":"2023-02-02T09:32:29","guid":{"rendered":"http:\/\/www.biocloudservice.com\/wordpress\/?post_type=product&#038;p=1917"},"modified":"2023-02-20T16:00:36","modified_gmt":"2023-02-20T08:00:36","slug":"r%e5%8f%af%e8%a7%86%e5%8c%96%ef%bc%9aggstatsplot%e5%8c%85-%e7%a7%91%e7%a0%94%e7%95%8c%e7%9a%84%e7%be%8e%e5%9b%be%e7%a7%80%e7%a7%802","status":"publish","type":"product","link":"http:\/\/www.biocloudservice.com\/wordpress\/?product=r%e5%8f%af%e8%a7%86%e5%8c%96%ef%bc%9aggstatsplot%e5%8c%85-%e7%a7%91%e7%a0%94%e7%95%8c%e7%9a%84%e7%be%8e%e5%9b%be%e7%a7%80%e7%a7%802","title":{"rendered":"R\u53ef\u89c6\u5316\uff1aggstatsplot\u5305\u2014\u79d1\u7814\u754c\u7684\u7f8e\u56fe\u79c0\u79c0(2)"},"content":{"rendered":"<section>\n<section>\u6bd4\u8f83\u51e0\u7ec4\u6570\u636e\u5dee\u5f02\u7684\u65f6\u5019\uff0c\u6211\u4eec\u53ef\u89c6\u5316\u7684\u56fe\u6bd4\u8f83\u591a\u79cd\u591a\u6837\uff0c\u6bd4\u5982\u53ef\u4ee5\u7ed8\u5236\u7bb1\u7ebf\u56fe\u3001\u6563\u70b9\u56fe\u6216\u5c0f\u63d0\u7434\u56fe\u7b49\u3002ggstatsplot\u5305\u53ef\u4ee5\u5c06\u8fd93\u79cd\u5408\u5e76\u5728\u4e00\u8d77\u8fdb\u884c\u5c55\u793a\uff0c\u4eca\u5929\u6765\u8bb0\u5f55\u5e76\u5206\u4eab\u4e0b\u7528ggstatsplot\u5305\u4f5c\u56fe\u7684\u8fc7\u7a0b\u3002\u4ee5\u4e0b\u662f\u4eca\u5929\u8981\u505a\u76842\u4e2a\u56fe\uff1a<\/section>\n<p>\uff081\uff09\u5dee\u5f02\u7edf\u8ba1\uff1b<\/p>\n<p>\uff082\uff09\u76f8\u5173\u6027\u6563\u70b9\u56fe\u5206\u6790\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-1918\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2023\/02\/640.png?resize=300%2C246\" alt=\"\" width=\"300\" height=\"246\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2023\/02\/640.png?resize=300%2C246 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2023\/02\/640.png?w=571 571w\" sizes=\"(max-width: 300px) 100vw, 300px\" data-recalc-dims=\"1\" \/><\/p>\n<\/section>\n<section><\/section>\n<section>\n<section><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-1919\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2023\/02\/640-1.png?resize=300%2C249\" alt=\"\" width=\"300\" height=\"249\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2023\/02\/640-1.png?resize=300%2C249 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2023\/02\/640-1.png?w=574 574w\" sizes=\"(max-width: 300px) 100vw, 300px\" data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<section><span style=\"color: #000000;\"><strong>1.\u00a0\u5b89\u88c5R\u5305<\/strong><\/span><\/section>\n<section><\/section>\n<section>\u5b89\u88c5\u975e\u5e38\u7b80\u5355\uff0c\u5e38\u89c4\u5b89\u88c5\u65b9\u6cd5\uff1a<\/section>\n<section><\/section>\n<section>\u65b9\u6cd5\u4e00\uff1a\u76f4\u63a5<strong>install.packages(\u201cggstatsplot\u201d)<\/strong>\u65b9\u6cd5\u4e8c\uff1a\u8fdb\u5165CRAN\u5b98\u7f51\u4e0b\u8f7dr\u5305\uff0c\u7136\u540e\u672c\u5730\u5b89\u88c5\u3002\u5b89\u88c5\u65f6\u9700\u6ce8\u610f\u4e00\u70b9\uff0c<strong>R\u7248\u672c\u5fc5\u987b4.0.0\u53ca\u4ee5\u4e0a<\/strong><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1924\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2023\/02\/640-6.png?resize=271%2C66\" alt=\"\" width=\"271\" height=\"66\" data-recalc-dims=\"1\" \/><\/section>\n<section><strong>2.\u00a0\u4f5c\u56fe\u793a\u4f8b1: \u7bb1\u7ebf\u56fe+\u63d0\u7434\u56fe+\u6563\u70b9\u56fe<\/strong><\/section>\n<section><\/section>\n<section>\u5b89\u88c5\u6210\u529f\u540e\uff0c\u5f00\u59cb\u8fdb\u884c\u5206\u6790\uff0c\u7528<strong>ggbetweenstats\u51fd\u6570\u4f5c\u56fe<\/strong>\uff0c\u4ee5\u4e0b\u4e3a\u793a\u4f8b\u6570\u636e\u548c\u4f5c\u56fe\u4ee3\u7801\uff1a<\/section>\n<section><\/section>\n<section><strong>\u793a\u4f8b\u6570\u636e<\/strong>\uff1a<\/section>\n<section><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-1920\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2023\/02\/640-2.png?resize=300%2C53\" alt=\"\" width=\"300\" height=\"53\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2023\/02\/640-2.png?resize=300%2C53 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2023\/02\/640-2.png?resize=600%2C106 600w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2023\/02\/640-2.png?resize=1024%2C181 1024w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2023\/02\/640-2.png?resize=768%2C136 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2023\/02\/640-2.png?w=1042 1042w\" sizes=\"(max-width: 300px) 100vw, 300px\" data-recalc-dims=\"1\" \/><\/section>\n<section>\n<section><\/section>\n<\/section>\n<section><strong>\u4ee3\u7801<\/strong>\uff1a<\/section>\n<section>\n<section>\n<section>library(ggstatsplot)## plotrt=read.table(&#8220;input.txt&#8221;,header=T,check.names=F,row.names=1,sep=&#8221;\\t&#8221;)pdf(&#8220;boxplot.pdf&#8221;,width = 6,height = 5)ggbetweenstats(data = rt,<\/p>\n<p>x = group,<\/p>\n<p>y = AFP,<\/p>\n<p>title = &#8220;AFP expression&#8221;,<\/p>\n<p>messages = FALSE<\/p>\n<p>)<\/p>\n<p>dev.off()<\/p>\n<\/section>\n<\/section>\n<\/section>\n<section><strong>\u7ed3\u679c<\/strong>\uff1a<\/section>\n<section><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-1925\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2023\/02\/640-7.png?resize=300%2C246\" alt=\"\" width=\"300\" height=\"246\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2023\/02\/640-7.png?resize=300%2C246 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2023\/02\/640-7.png?w=571 571w\" sizes=\"(max-width: 300px) 100vw, 300px\" data-recalc-dims=\"1\" \/><\/section>\n<section><\/section>\n<section><strong>3.\u00a0\u4f5c\u56fe\u793a\u4f8b2: \u76f8\u5173\u6027\u56fe<\/strong><\/section>\n<section><\/section>\n<section>\u793a\u4f8b\u6570\u636e\u548c\u4e0a\u8ff0\u6587\u4ef6\u4e00\u6837\uff0c\u7528<strong>ggscatterstats\u51fd\u6570\u4f5c\u56fe<\/strong>\uff0c\u7528\u4e8e\u5206\u67902\u4e2a\u57fa\u56e0\u4e4b\u95f4\u7684\u76f8\u5173\u6027\uff0c\u4f5c\u56fe\u4ee3\u7801\u5982\u4e0b\uff1a<\/section>\n<section><strong>\u4ee3\u7801<\/strong>\uff1a<\/section>\n<section><\/section>\n<section>\n<section>\n<section>library(ggstatsplot)pdf(&#8220;cor.pdf&#8221;,width = 6,height = 5)ggscatterstats(data = rt,x = AFP,y = CD24,<\/p>\n<p>type = &#8220;p&#8221;,<\/p>\n<p>conf.level = 0.99,<\/p>\n<p># marginal=F,<\/p>\n<p>messages = TRUE<\/p>\n<p>)<\/p>\n<p>dev.off()<\/p>\n<\/section>\n<\/section>\n<\/section>\n<section><strong>\u7ed3\u679c<\/strong>\uff1a<\/section>\n<section>\n<section><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-1922\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2023\/02\/640-4.png?resize=300%2C249\" alt=\"\" width=\"300\" height=\"249\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2023\/02\/640-4.png?resize=300%2C249 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2023\/02\/640-4.png?w=574 574w\" sizes=\"(max-width: 300px) 100vw, 300px\" data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>\u8d2d\u4e70\u540e\u4f1a\u663e\u793a\u4f60\u8d2d\u4e70\u7684\u670d\u52a1\u5668\u7684\u8d26\u53f7\u548c\u5bc6\u7801\u3002\u5e76\u4e14\u53d1\u9001\u670d\u52a1\u5668\u7684\u8d26\u53f7\u548c\u5bc6\u7801\u5230\u4f60\u7684\u90ae\u7bb1\u4f5c\u4e3a\u5907\u4efd\u3002\u683c\u5f0f\u4e3axxxx:zzzz\u00a0 \uff08\u4ee5\u201c\uff1a\u201d\u5206\u5272\uff0c\u524d\u8fb9\u662f\u8d26\u53f7\uff0c\u540e\u8fb9\u662f\u5bc6\u7801\uff09\uff0c\u4f8b\u5982\u00a0 xiaoyun:998899 \u90a3\u4e48\u4f60\u7684\u670d\u52a1\u5668\u7684\u8d26\u53f7\u548c\u5bc6\u7801\u5206\u522b\u662fxiaoyun\u548c998899\u3002<\/p>\n<p>\u6709\u4e86\u8d26\u53f7\u548c\u5bc6\u7801\u540e\uff0c\u4e0d\u4f1a\u767b\u5f55\u670d\u52a1\u5668\u7684\u53c2\u8003\u94fe\u63a5\uff1a<a href=\"http:\/\/www.biocloudservice.com\/wordpress\/?p=292\" target=\"_blank\" rel=\"noopener\">http:\/\/www.biocloudservice.com\/wordpress\/?p=292 \u00a0<\/a><\/p>\n<p>\u6709\u95ee\u9898\u54a8\u8be2\u5ba2\u670d\uff0c\u5ba2\u670d\u5fae\u4fe1\uff1a18502195490<\/p>\n","protected":false},"featured_media":1922,"template":"","meta":{"jetpack_post_was_ever_published":false},"product_cat":[24],"product_tag":[],"_links":{"self":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/product\/1917"}],"collection":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/product"}],"about":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/product"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/media\/1922"}],"wp:attachment":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1917"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fproduct_cat&post=1917"},{"taxonomy":"product_tag","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fproduct_tag&post=1917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}