JNplots: an R package to visualize outputs from the Johnson–Neyman technique for categorical and continuous moderators, including options for phylogenetic regressions

IF 1.8 3区 环境科学与生态学 Q3 ECOLOGY Evolutionary Ecology Pub Date : 2023-11-27 DOI:10.1007/s10682-023-10281-1
Ken S. Toyama
{"title":"JNplots: an R package to visualize outputs from the Johnson–Neyman technique for categorical and continuous moderators, including options for phylogenetic regressions","authors":"Ken S. Toyama","doi":"10.1007/s10682-023-10281-1","DOIUrl":null,"url":null,"abstract":"<p>The analysis of two-way interactions in linear models is common in the fields of ecology and evolution, being often present in allometric, macroevolutionary, and experimental studies, among others. However, the interpretation of significant interactions can be incomplete when limited to the examination of model coefficients and significance tests. The Johnson–Neyman technique represents a step forward in the interpretation of significant two-way interactions, allowing the user to examine how changes in the moderator variable, it being categorical or continuous, affect the significance of the relationship between the dependent variable and the predictor. Despite its implementation in several software since its initial development, the available options to perform the method lack certain functionality aspects, including the visualization of regions of non-significance when the moderator is categorical, the implementation of phylogenetic corrections, and more intuitive graphical outputs. Here I present the R package <i>JNplots</i>, which aims to fill gaps left by previous software regarding the calculation and visualization of regions of non-significance when fitting two-way interaction models. <i>JNplots</i> includes two basic functions which allow the user to investigate different types of interaction models, including cases where the moderator variable is categorical or continuous. The user can also specify whether the model to explore should be phylogenetically informed and choose a particular phylogenetic correlation structure to be used. Finally, the functions of <i>JNplots</i> produce plots that are largely customizable and allow a more intuitive interpretation of the interaction term. Here I provide a walkthrough on the use of <i>JNplots</i> using three different examples based on empirical data, each representing a different common scenario in which the package can be useful. Additionally, I present the different customization options for the graphical outputs of <i>JNplots</i>.</p>","PeriodicalId":55158,"journal":{"name":"Evolutionary Ecology","volume":"1 1","pages":""},"PeriodicalIF":1.8000,"publicationDate":"2023-11-27","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Evolutionary Ecology","FirstCategoryId":"93","ListUrlMain":"https://doi.org/10.1007/s10682-023-10281-1","RegionNum":3,"RegionCategory":"环境科学与生态学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"ECOLOGY","Score":null,"Total":0}
引用次数: 0

Abstract

The analysis of two-way interactions in linear models is common in the fields of ecology and evolution, being often present in allometric, macroevolutionary, and experimental studies, among others. However, the interpretation of significant interactions can be incomplete when limited to the examination of model coefficients and significance tests. The Johnson–Neyman technique represents a step forward in the interpretation of significant two-way interactions, allowing the user to examine how changes in the moderator variable, it being categorical or continuous, affect the significance of the relationship between the dependent variable and the predictor. Despite its implementation in several software since its initial development, the available options to perform the method lack certain functionality aspects, including the visualization of regions of non-significance when the moderator is categorical, the implementation of phylogenetic corrections, and more intuitive graphical outputs. Here I present the R package JNplots, which aims to fill gaps left by previous software regarding the calculation and visualization of regions of non-significance when fitting two-way interaction models. JNplots includes two basic functions which allow the user to investigate different types of interaction models, including cases where the moderator variable is categorical or continuous. The user can also specify whether the model to explore should be phylogenetically informed and choose a particular phylogenetic correlation structure to be used. Finally, the functions of JNplots produce plots that are largely customizable and allow a more intuitive interpretation of the interaction term. Here I provide a walkthrough on the use of JNplots using three different examples based on empirical data, each representing a different common scenario in which the package can be useful. Additionally, I present the different customization options for the graphical outputs of JNplots.

Abstract Image

查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
JNplots:一个R包,用于可视化约翰逊-内曼技术对分类和连续调节器的输出,包括系统发育回归的选项
线性模型中双向相互作用的分析在生态学和进化领域很常见,经常出现在异速生长、宏观进化和实验研究等领域。然而,当仅限于模型系数和显著性检验时,对重要相互作用的解释可能是不完整的。Johnson-Neyman技术代表了重要双向交互解释的一个进步,允许用户检查调节变量的变化,它是分类的或连续的,如何影响因变量和预测因子之间关系的重要性。尽管自最初开发以来在几个软件中实现了该方法,但执行该方法的可用选项缺乏某些功能方面,包括当moderator是分类时不重要区域的可视化,系统发育校正的实现以及更直观的图形输出。在这里,我介绍了R包JNplots,它旨在填补以前的软件在拟合双向交互模型时在计算和可视化非重要区域方面留下的空白。jnplot包括两个基本功能,允许用户研究不同类型的交互模型,包括调节变量是分类或连续的情况。用户还可以指定要探索的模型是否应该具有系统发育信息,并选择要使用的特定系统发育相关结构。最后,jnplot的功能生成的图表在很大程度上是可定制的,并且允许对交互项进行更直观的解释。在这里,我将使用基于经验数据的三个不同示例介绍jnplot的使用,每个示例都代表一个不同的常见场景,在这些场景中包可以发挥作用。此外,我还为jnplot的图形输出提供了不同的自定义选项。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
Evolutionary Ecology
Evolutionary Ecology 环境科学-进化生物学
CiteScore
3.00
自引率
5.30%
发文量
70
审稿时长
3 months
期刊介绍: Evolutionary Ecology is a concept-oriented journal of biological research at the interface of ecology and evolution. We publish papers that therefore integrate both fields of research: research that seeks to explain the ecology of organisms in the context of evolution, or patterns of evolution as explained by ecological processes. The journal publishes original research and discussion concerning the evolutionary ecology of organisms. These may include papers addressing evolutionary aspects of population ecology, organismal interactions and coevolution, behaviour, life histories, communication, morphology, host-parasite interactions and disease ecology, as well as ecological aspects of genetic processes. The objective is to promote the conceptual, theoretical and empirical development of ecology and evolutionary biology; the scope extends to any organism or system. In additional to Original Research articles, we publish Review articles that survey recent developments in the field of evolutionary ecology; Ideas & Perspectives articles which present new points of view and novel hypotheses; and Comments on articles recently published in Evolutionary Ecology or elsewhere. We also welcome New Tests of Existing Ideas - testing well-established hypotheses but with broader data or more methodologically rigorous approaches; - and shorter Natural History Notes, which aim to present new observations of organismal biology in the wild that may provide inspiration for future research. As of 2018, we now also invite Methods papers, to present or review new theoretical, practical or analytical methods used in evolutionary ecology. Students & Early Career Researchers: We particularly encourage, and offer incentives for, submission of Reviews, Ideas & Perspectives, and Methods papers by students and early-career researchers (defined as being within one year of award of a PhD degree) – see Students & Early Career Researchers
期刊最新文献
Novel and classical methods similarly describe variation in territory size among males in Neotropical poison frogs with contrasting reproductive and behavioral strategies Do past and present abiotic conditions explain variation in the nutritional quality of wildflower pollens for bees? History matters: evolutionary and demographic reconstruction of the Southwest Atlantic loggerheads (Testudinata: Cheloniidae) Intraspecies variation in cytoplasmic incompatibility intensity in the bean beetle Callosobruchus analis Geographic body size variation of a Plateau anuran: evidence supporting the water availability and hibernation hypotheses
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1