J Plant Ecol ›› 2023, Vol. 16 ›› Issue (6): rtad047.DOI: 10.1093/jpe/rtad047

• Research Article •    

The use of R in forestry research

Jiangshan Lai1,2, Weijie Zhu1,2, Dongfang Cui1,2, Dayong Fan3, Lingfeng Mao1,2,*   

  1. 1College of Ecology and Environment, Nanjing Forestry University, Nanjing 210037, China;
    2Research Center of Quantitative Ecology,Nanjing Forestry University, Nanjing 210037, China;
    3College of Forestry, Beijing Forestry University, Beijing 100083, China
  • Received:2023-08-17 Revised:2023-09-26 Accepted:2023-12-09 Online:2023-12-12 Published:2023-12-01
  • Contact: E-mail: maolingfeng2008@163.com

R在林业研究中的应用

Abstract: The field of forestry research has greatly benefited from the integration of computational tools and statistical methods in recent years. Among these tools, the programming language R has emerged as a powerful and versatile platform for forestry research, ranging from data analysis, modeling to visualization. However, the key trends in general reported R use and patterns in forestry research remain unknown. We analyzed R and R package usage frequencies for 14 800 research articles published in eight top forestry journals across a span of 10 years, from 2013 to 2022. Among these articles, a notable number of 6790 (accounting for 45.7%) explicitly utilized R as their primary tool for data analysis. The adoption of R exhibited a linear growth trend, rising from 28.3% in 2013 to 60.9% in 2022. The top five used packages reported were vegan, lme4, nlme, MuMIn, and ggplot2. Diverse journals have their unique areas of emphasis, resulting in disparities in the frequency of R package application among journals. The average number of R packages used per article also showed an increasing trend over time. The study underscores the recognition that R, with its powerful data statistical and visualization capabilities, plays a pivotal role in enabling researchers to conduct thorough analyses and acquire comprehensive insights into various aspects of forestry science.

Key words: data analysis, forestry research, open source, R language and R packages, R programming

摘要:
R是用于数据分析、建模和可视化的强大编程语言之一,广泛运用于各个科学学科,但其林学研究领域受欢迎程度还尚待探索。为了回答这个问题,我们对8种主要林学期刊上2013至2022年间发表的14 800多篇研究文章R和R包的使用频率进行了全面分析。分析结果显示,有6700篇文章(占总数的45.7%)明确使用R进行数据分析。R的使用率呈现出持续增长的趋势,从2013年的28.3%上升到2022年的60.9%。使用最多的5个R软件包包括veganlme4nlmeMuMInggplot2。各期刊的关注点有所不同导致R软件包使用频率格局不同。该分析表明,R语言凭借其强大的统计和数据可视化功能,在林学各个领域具有广阔的使用前景。

关键词: 数据分析, 林业研究, 开源, R语言与, R软件包, R编程