绘图R:在子图()函数中排列奇数图

发布于 2025-01-24 06:34:54 字数 579 浏览 3 评论 0原文

我试图将3个图安排到子图函数中,但它总是将面板分为相等的部分。我想拥有这样的东西: ”在此处输入图像描述

但是,相反,我得到了这样的东西:

library(plotly)
subplot(plot_ly(), plot_ly(), plot_ly(), nrows = 2)

“在此处输入映像说明”

是否有任何方法可以使第3个图填充整个第二行?

I'm trying to arrange 3 plots into subplot function, but it always divides the panel in equal parts. I would like to have something like this:enter image description here

But, instead, I'm getting something like this:

library(plotly)
subplot(plot_ly(), plot_ly(), plot_ly(), nrows = 2)

enter image description here

Is there any way to make the 3rd plot fill the whole 2nd line?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

海的爱人是光 2025-01-31 06:34:54

是的,您需要将顶行划分,然后将其与底部行相结合。

library(plotly)
subplot(subplot(plot_ly(), plot_ly(), nrows = 1), plot_ly(), nrows = 2)

Yes, you need to subplot the top row and then combine that with the bottom row.

library(plotly)
subplot(subplot(plot_ly(), plot_ly(), nrows = 1), plot_ly(), nrows = 2)

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文