r ggplot2 facet_wrap:如何在不同行中创建不同数量的列
我总共有14个组,我想在第一行中介绍4列,第二行和第三行中有5列。
I have 14 groups total, i want to present 4 columns in the first row, 5 in the 2nd and 3rd row.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如评论中所述,您可以使用软件包
ggh4x
可以在其中创建自己的布局。我建议您查看评论中提到的链接,但我可以在您想要的布局中给您一个示例。重要的是在设计中#表示空单元。您可以对任何需要进行布局:在2022-07-05创建的 reprex软件包 (v2.0.1)
As said in the comments you can use the package
ggh4x
where you can create your own layout. I would suggest having a look at the link mentioned in the comments, but I can give you an example where you have the layout you want. The important part is in the design where # means empty cell. You can make a layout to whatever you want:Created on 2022-07-05 by the reprex package (v2.0.1)