easylayout:一个在RStudio内进行交互式力导向布局的R包
easylayout: an R package for interactive force-directed layouts within RStudio
AI总结:
提出R包easylayout,通过在IDE内利用交互式力模拟连接网络操作与可视化,支持实时调整参数和节点编辑,并能将布局结果返回R会话用主流库绘制,旨在减少寻找合适网络布局的时间。
摘要:
动机:网络可视化对于各知识领域的有效沟通至关重要。目前,在编程环境中,网络操作与网络可视化之间存在脱节。用户通常将网络数据导出,以便在Cytoscape和Gephi等外部交互式软件中进行布局。我们认为,当前的R包生态系统缺乏一个与常见数据分析工作流良好集成的交互式布局引擎。结果:我们提出了easylayout,一个R包,通过在IDE本身(例如RStudio、VSCode)内利用交互式力模拟,连接了网络操作和可视化。它不是又一个可视化库,而是旨在互连现有库并简化其在R生态系统中的使用。easylayout接收一个igraph对象并将其序列化为一个通过Shiny服务器与IDE界面集成的Web应用程序。该应用程序通过模拟吸引力和排斥力来布局网络。模拟参数可以实时调整。编辑模式允许移动和旋转节点。该实现追求性能,以便即使是低端设备也能处理相对较大的网络。一旦用户完成布局调整,它将被发送回R会话,通过ggraph、igraph甚至base包等流行库进行绘制。当前实现专注于R生态系统,但使用Web技术使其易于移植到类似环境,如Python/Jupyter Notebooks。我们期望该工具能减少寻找合适网络布局的时间,最终使研究人员能够生成更具说服力的图形。可用性与实现:easylayout在GitHub上以MIT许可证免费提供。该包用R/Shiny和JavaScript/Svelte实现。
英文摘要:
Motivation Network visualization is critical for effective communication in various fields of knowledge. Currently, a gap separates network manipulation from network visualization in programming environments. Users often export network data to be laid out in external interactive software, like Cytoscape and Gephi. We argue the current R package ecosystem lacks an interactive layout engine well integrated with common data analysis workflows. Results We present easylayout, an R package that bridges network manipulation and visualization by leveraging interactive force simulations within the IDE itself (e.g., RStudio, VSCode). It is not yet another visualization library, but instead aims to interconnect existing libraries and streamline their usage into the R ecosystem. easylayout takes an igraph object and serializes it into a web application integrated with the IDE's interface through a Shiny server. The app lays out the network by simulating attraction and repulsion forces. Simulation parameters can be adjusted in real-time. An editing mode allows moving and rotating nodes. The implementation aims for performance, so that even lower-end devices are able to work with relatively large networks. Once the user finishes tweaking the layout, it is sent back to the R session to be plotted through popular libraries like ggraph, igraph or even the base package itself. The current implementation focuses on the R ecosystem, but using web technologies makes it easily portable to similar environments, like Python/Jupyter Notebooks. We expect this tool to reduce the time spent searching for suitable network layouts, ultimately allowing researchers to generate more compelling figures. Availability and implementation easylayout is freely available under an MIT license on GitHub (https://github.com/dalmolingroup/easylayout). The package is implemented in R/Shiny and JavaScript/Svelte.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。