Custom layout for 2 plots using knitr

删除回忆录丶 提交于 2020-01-17 03:49:46

问题


What I want is to display 2 figures next to each other in one row, so that the first one is square and the second one takes all the remaining width, it should be wider than the first one (I use knitr and LaTeX).

I tried using r layout and specify out.width and out.height in a figure chunk options, but I could not get it right and I'm not sure this is the right approach.

And in general, it is better to configure figure size in chunk options, right? But what's the best approach for more complex plot layouts?

来源:https://stackoverflow.com/questions/31992128/custom-layout-for-2-plots-using-knitr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!