{"id":517,"date":"2024-10-07T13:22:09","date_gmt":"2024-10-07T04:22:09","guid":{"rendered":"https:\/\/nature-supc.jp\/HP02\/?page_id=517"},"modified":"2024-10-07T14:54:50","modified_gmt":"2024-10-07T05:54:50","slug":"r%e8%a8%80%e8%aa%9e%e3%81%ab%e3%82%88%e3%82%8b%e6%a8%b9%e5%b9%b9%e8%a7%a3%e6%9e%90%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%a0%e3%80%8cstemanalysis%e3%80%8d%e3%81%ae%e4%bd%bf%e7%94%a8%e6%96%b9","status":"publish","type":"page","link":"https:\/\/nature-supc.jp\/HP02\/%e8%b3%87%e6%96%99%e5%ae%a4%ef%bc%88%e6%ba%96%e5%82%99%e4%b8%ad%ef%bc%89\/r%e8%a8%80%e8%aa%9e%e3%81%ab%e3%82%88%e3%82%8b%e6%a8%b9%e5%b9%b9%e8%a7%a3%e6%9e%90%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%a0%e3%80%8cstemanalysis%e3%80%8d%e3%81%ae%e4%bd%bf%e7%94%a8%e6%96%b9\/","title":{"rendered":"R\u8a00\u8a9e\u306b\u3088\u308b\u6a39\u5e79\u89e3\u6790\u30d7\u30ed\u30b0\u30e9\u30e0\u300cStemAnalysis\u300d\u306e\u4f7f\u7528\u65b9\u6cd5"},"content":{"rendered":"\n<p>\u3010\u6982\u8981\u3011<\/p>\n\n\n\n<p>\u300cStemAnalysis R\u30d1\u30c3\u30b1\u30fc\u30b8\u300d\u306f\u3001\u6a39\u6728\u306e\u6210\u9577\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3092\u518d\u69cb\u7bc9\u3057\u3001\u6a39\u9ad8\u3068\u76f4\u5f84\u306e\u95a2\u4fc2\u3092\u69cb\u7bc9\u3057\u3001\u305d\u306e\u7d50\u679c\u3001\u80f8\u9ad8\u76f4\u5f84\uff08DBH\uff09\u3001\u6a39\u9ad8\u3001\u5e79\u4f53\u7a4d\u3001\u6a39\u6728\u30d0\u30a4\u30aa\u30de\u30b9\u3001\u70ad\u7d20\u56fa\u5b9a\u306e\u89b3\u70b9\u304b\u3089\u6210\u9577\u50be\u5411\u3092\u8a08\u7b97\u3059\u308b\u305f\u3081\u306bHuili Wuh\u307b\u304b\uff082022\uff09\u304c\u4f5c\u6210\u3057\u305f\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30c4\u30fc\u30eb\u306e\u57fa\u672c\u7684\u306a\u4f7f\u7528\u6cd5\u3068\u3001\u65b0\u898f\u30c7\u30fc\u30bf\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306e\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u306a\u304a\u3001\u3053\u3053\u3067\u306f\u3001R\u8a00\u8a9e\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3092\u7406\u89e3\u3057\u3066\u304a\u308a\u3001\u300cRStudio\u300d\u306e\u64cd\u4f5c\u304c\u3067\u304d\u308b\u30e6\u30fc\u30b6\u30fc\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>1  \u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/strong><\/p>\n\n\n\n<p>1) R\u3092\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u66f4\u65b0\u3059\u308b\uff08\u57fa\u672c\u7684\u306b4.\uff10\u4ee5\u4e0a\u3067\u3042\u308c\u3070\u554f\u984c\u306a\u3055\u305d\u3046\uff09<\/p>\n\n\n\n<p>R\u53ca\u3073RStudio\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306f\u4e0b\u8a18\u30b5\u30a4\u30c8\u306a\u3069\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>           <a href=\"https:\/\/www.tku.ac.jp\/iss\/guide\/classroom\/soft\/rrstudio-desktop.html\">https:\/\/www.tku.ac.jp\/iss\/guide\/classroom\/soft\/rrstudio-desktop.html<\/a><\/p>\n\n\n\n<p>2)\u300cStemAnalysis\u300d\u306a\u3069\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u8aad\u307f\u8fbc\u307f<\/p>\n\n\n\n<p>\u300cRStudio\u300d\u7acb\u3061\u4e0a\u3052\u5f8c\u3001\u4ee5\u4e0b\u306b\u3088\u308a\u30d7\u30ed\u30b0\u30e9\u30e0\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30c8\u30fc\u30eb\u3059\u308b<\/p>\n\n\n\n<p>     install.packages(\"StemAnalysis\")\u3000\uff1a\u3000\u6a39\u5e79\u89e3\u6790\u30c4\u30fc\u30eb\u306e\u30a4\u30f3\u30c8\u30fc\u30eb<\/p>\n\n\n\n<p>\u3000  install.packages(\"knitr\")\u3000\uff1a\u8868\u5f62\u5f0f\u8868\u793a\u30c4\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n\n\n\n<p>\u3000\u3000\u3000\u6700\u521d\u3001\u4e00\u56de\u306e\u307f\u3067\u3088\u3044\u3002<\/p>\n\n\n\n<p>2. <strong>\u5b9f\u884c<\/strong><\/p>\n\n\n\n<p>1)\u5b9f\u884c\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30ed\u30fc\u30c9\u3059\u308b<\/p>\n\n\n\n<p>require(StemAnalysis)<\/p>\n\n\n\n<p>     require(knitr)<\/p>\n\n\n\n<p>2) \u30d1\u30c3\u30b1\u30fc\u30b8\u304b\u3089\u8a08\u7b97\u7528\u306e\u30c7\u30fc\u30bf\u3092\u547c\u3073\u51fa\u3059<\/p>\n\n\n\n<p>data(stemdata)\uff1a\u6a39\u5e79\u89e3\u6790\u8a08\u7b97\u7528\u306e\u8a08\u6e2c\u30c7\u30fc\u30bf\u306e\u547c\u3073\u51fa\u3057<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306f\u5225\u6dfb\u30d5\u30a1\u30a4\u30eb\u53c2\u7167<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"567\" height=\"319\" src=\"https:\/\/nature-supc.jp\/HP02\/wp-content\/uploads\/2024\/10\/dbbaca7998f0ab21fd51608e554a3952.png\" alt=\"\" class=\"wp-image-524\" style=\"width:721px;height:auto\" srcset=\"https:\/\/nature-supc.jp\/HP02\/wp-content\/uploads\/2024\/10\/dbbaca7998f0ab21fd51608e554a3952.png 567w, https:\/\/nature-supc.jp\/HP02\/wp-content\/uploads\/2024\/10\/dbbaca7998f0ab21fd51608e554a3952-300x169.png 300w, https:\/\/nature-supc.jp\/HP02\/wp-content\/uploads\/2024\/10\/dbbaca7998f0ab21fd51608e554a3952-320x180.png 320w\" sizes=\"auto, (max-width: 567px) 100vw, 567px\" \/><figcaption class=\"wp-element-caption\">\u8a08\u7b97\u30c7\u30fc\u30bf\u30b5\u30f3\u30d7\u30eb<\/figcaption><\/figure>\n\n\n\n<p>data(parameterdata)\uff1a\u6a39\u6728\u306e\u30d0\u30a4\u30aa\u30de\u30b9\u3092\u63a8\u5b9a\u3059\u308b\u969b\u306e\u3001\u30a2\u30ed\u30e1\u30c8\u30ea\u30fc\u30e2\u30c7\u30eb [ln(Bi)=\u03b2i0+\u03b2i1\u00d7ln(DBH^2H)] (Xiang et al., 2021) \u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u5024\uff08\u30d1\u30e9\u30e1\u30fc\u30bfa (\u03b2i0)\u3001b (\u03b2i1)\u3001\u304a\u3088\u3073\u5404\u7d44\u7e54\u306eC\u6fc3\u5ea6\u3092\u542b\u3080\uff09\u3002\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u5165\u529b<\/p>\n\n\n\n<p>data(BEFdata)\uff1a\u6a39\u6728\u306e\u7dcf\u30d0\u30a4\u30aa\u30de\u30b9\u3092\u63a8\u5b9a\u3059\u308b\u969b\u306e\u4f53\u7a4d\u30e2\u30c7\u30eb [VWDBEF*(1+R)] (IPCC, 2003) \u306b\u7528\u3044\u308b\u62e1\u5927\u4fc2\u6570\u30c7\u30fc\u30bf\uff08\u6728\u6750\u5bc6\u5ea6 (WD)\u3001\u30d0\u30a4\u30aa\u30de\u30b9\u62e1\u5927\u4fc2\u6570 (BEF)\u3001\u5730\u4e0b\u90e8\uff1a\u5730\u4e0a\u90e8\u6bd4 (R)\u3001\u304a\u3088\u3073C\u6fc3\u5ea6\u3092\u542b\u3080\uff09\u3002\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u5165\u529b\u3002<\/p>\n\n\n\n<p>3\uff09\u8a08\u7b97<\/p>\n\n\n\n<p>\u3000\u3000\u6a39\u5e79\u8a08\u6e2c\u30c7\u30fc\u30bf\u3092\u7528\u3044\u3066\u3001\u5e79\u306e\u6210\u9577\u30d1\u30bf\u30fc\u30f3\u3092\u5fa9\u5143\u3057\u3001\u300c\u80f8\u9ad8\u76f4\u5f84\u300d\u3068\u6a39\u9ad8\u306e\u300c\u6210\u9577\u50be\u5411\u300d\u3001\u304a\u3088\u3073\u6a39\u76ae\u3092\u542b\u3081\u305f\u300c\u6a39\u5e79\u4f53\u7a4d\u300d\u5897\u52a0\u50be\u5411\u3092\u6b21\u306b\u3088\u308a\u8a08\u7b97\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u3000\u3000\u3000stemgrowth &lt;- stemanalysism(xtree = 8, stemgrowth = TRUE, stemdata = stemdata)<\/p>\n\n\n\n<p>\u3000\u3000\u3000\u3000\u3000*\u300cstemdata\u300d\uff08\u5909\u6570\uff09\u306b\u683c\u7d0d\u3057\u305fNo8\u30c7\u30fc\u30bf\u3092\u7528\u3044\u3066\u8a08\u7b97\u3000\u3000<\/p>\n\n\n\n<p>\u3000\u3000\u3000Plot\u753b\u9762\u304c\u958b\u3044\u3066\u7d50\u679c\u304c\u6b21\u306e\u3088\u3046\u306b\u56f3\u793a\u3055\u308c\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/nature-supc.jp\/HP02\/wp-content\/uploads\/2024\/10\/9d453b7f6775bf97951ec2317dd7411d.png\" alt=\"\" class=\"wp-image-523\" style=\"width:820px;height:auto\"\/><\/figure>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<p>\u8a08\u7b97\u7d50\u679c\u3092\u30c6\u30fc\u30d6\u30eb\u5f62\u5f0f\u8868\u793a\u3059\u308b\u5834\u5408\u306f\u3001<\/p>\n\n\n\n<p>\u3000\u3000\u3000\u3000knitr::kable(stemgrowth)<\/p>\n\n\n\n<p>\u3000\u3000\u3000\u3000<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"555\" height=\"255\" src=\"https:\/\/nature-supc.jp\/HP02\/wp-content\/uploads\/2024\/10\/e2042fde962f3bbec8fe5b5d81f903a5.png\" alt=\"\" class=\"wp-image-522\" style=\"width:810px;height:auto\" srcset=\"https:\/\/nature-supc.jp\/HP02\/wp-content\/uploads\/2024\/10\/e2042fde962f3bbec8fe5b5d81f903a5.png 555w, https:\/\/nature-supc.jp\/HP02\/wp-content\/uploads\/2024\/10\/e2042fde962f3bbec8fe5b5d81f903a5-300x138.png 300w\" sizes=\"auto, (max-width: 555px) 100vw, 555px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4ee5\u4e0a\u306e\u624b\u9806\u306e\u8a73\u3057\u304f\u306f\u4e0b\u8a18\u30b5\u30a4\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ul>\n\n\n\n<p>  <a href=\"https:\/\/cran.rstudio.com\/web\/packages\/StemAnalysis\/vignettes\/my-vignette.html\">https:\/\/cran.rstudio.com\/web\/packages\/StemAnalysis\/vignettes\/my-vignette.html<\/a><\/p>\n\n\n\n<p><strong>2<\/strong><strong>\u3000\u65b0\u3057\u304f\u8a08\u6e2c\u3057\u305f\u30c7\u30fc\u30bf\u3067\u8a08\u7b97\u3059\u308b\u65b9\u6cd5<\/strong><\/p>\n\n\n\n<p>1\uff09<a href=\"https:\/\/nature-supc.jp\/HP02\/wp-content\/uploads\/2024\/10\/7c525b985ec369f61bc0c64accda5459.xlsx\">\u8a08\u7b97\u30d5\u30a9\u30fc\u30de\u30c3\u30c8<\/a>\u306b\u6cbf\u3063\u305f\u8a08\u7b97\u7528\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n\n\n\n<p>2)\u3000\u3053\u306e\u969b\u3001\u6a39\u5e79\u89e3\u6790\u3092\u884c\u3046R\u753b\u9762\u4e0a\u304b\u3089\u300cstemdata\u300d\u3092\u5225\u540d\uff08\u30b3\u30f3\u30de\u533a\u5207\u308a\uff09\u3067csv\u5f62\u5f0f\u51fa\u529b<\/p>\n\n\n\n<p>* \u51fa\u529b\u30c7\u30fc\u30bf\u4e0a\u3092\u30a8\u30af\u30bb\u30eb\u3067\u547c\u3073\u51fa\u3057\u3066\u3001\u65b0\u305f\u306a\u6a39\u5e79\u89e3\u6790\u30c7\u30fc\u30bf\u3067\u7de8\u96c6\u3057\u3000csv\uff08\u30b3\u30f3\u30de\u533a\u5207\u308a\uff09\u30d5\u30a1\u30a4\u30eb\u3067\u4fdd\u5b58\u3059\u308b\u3068\u9593\u9055\u3044\u304c\u6e1b\u3089\u305b\u308b<\/p>\n\n\n\n<p>3)\u6a39\u5e79\u89e3\u6790\u3092\u884c\u3046R\u753b\u9762\u4e0a\u3067\u7de8\u96c6\u3057\u305f\u30c7\u30fc\u30bf\u3092\u4efb\u610f\u306e\u540d\u524d\u3067\u8aad\u307f\u8fbc\u3080\u3002<\/p>\n\n\n\n<p>\u3000\u4f8b\uff1atestdata &lt;- read.table(\"C:\/Users\/user\/data.csv\", header = TRUE, sep = \",\", stringsAsFactors = FALSE)<\/p>\n\n\n\n<p>\u3000\u203b\u3053\u3053\u3067\u306f\u3001test\u30c7\u30fc\u30bf\u304c\u8a08\u7b97\u7528\u306e\u30c7\u30fc\u30bf<\/p>\n\n\n\n<p>4)\u6b21\u306e\u5f0f\u3067\u3001\u8a08\u7b97\u7528\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u3066\u5b9f\u884c\u3059\u308b<\/p>\n\n\n\n<p>stemgrowth &lt;- stemanalysism(xtree = 1, stemgrowth = TRUE, stemdata = testdata) <\/p>\n\n\n\n<p>\u8907\u6570\u306e\u30c7\u30fc\u30bf\u3092\u4e00\u62ec\u3057\u3066\u30c7\u30fc\u30bf\u4fdd\u5b58\u3057\u3066\u3001\u30b5\u30f3\u30d7\u30eb\u756a\u53f7\u3092\u6307\u5b9a\u3057\u30c7\u30fc\u30bf\u3092\u547c\u3073\u51fa\u3057\u3066\u51e6\u7406\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3002\u3053\u306e\u5834\u5408\u306f\u3001\u4e0a\u5f0f\u306e\u6a39\u6728\u756a\u53f7\u3092\u300cxtree = ##\u300d\u3092\u6307\u5b9a\u3059\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u6982\u8981\u3011 \u300cStemAnalysis R\u30d1\u30c3\u30b1\u30fc\u30b8\u300d\u306f\u3001\u6a39\u6728\u306e\u6210\u9577\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3092\u518d\u69cb\u7bc9\u3057\u3001\u6a39\u9ad8\u3068\u76f4\u5f84\u306e\u95a2\u4fc2\u3092\u69cb\u7bc9\u3057\u3001\u305d\u306e\u7d50\u679c\u3001\u80f8\u9ad8\u76f4\u5f84\uff08DBH\uff09\u3001\u6a39\u9ad8\u3001\u5e79\u4f53\u7a4d\u3001\u6a39\u6728\u30d0\u30a4\u30aa\u30de\u30b9\u3001\u70ad\u7d20\u56fa\u5b9a\u306e\u89b3\u70b9\u304b\u3089\u6210\u9577\u50be\u5411\u3092\u8a08\u7b97\u3059\u308b\u305f\u3081\u306bH [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":205,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-517","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/nature-supc.jp\/HP02\/wp-json\/wp\/v2\/pages\/517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nature-supc.jp\/HP02\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/nature-supc.jp\/HP02\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/nature-supc.jp\/HP02\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nature-supc.jp\/HP02\/wp-json\/wp\/v2\/comments?post=517"}],"version-history":[{"count":8,"href":"https:\/\/nature-supc.jp\/HP02\/wp-json\/wp\/v2\/pages\/517\/revisions"}],"predecessor-version":[{"id":533,"href":"https:\/\/nature-supc.jp\/HP02\/wp-json\/wp\/v2\/pages\/517\/revisions\/533"}],"up":[{"embeddable":true,"href":"https:\/\/nature-supc.jp\/HP02\/wp-json\/wp\/v2\/pages\/205"}],"wp:attachment":[{"href":"https:\/\/nature-supc.jp\/HP02\/wp-json\/wp\/v2\/media?parent=517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}