控制空格子面板的放置 [英] Controlling placement of empty lattice panels

查看:43
本文介绍了控制空格子面板的放置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当绘制的面板比整个网格少时,您会得到一个没有面板的缝隙.大多数晶格函数将间隙放在右上角,但我想在间隙右下角,如marginal.plot一样(参见图片).有没有办法让其他晶格函数做同样的事情?

When plotting fewer panels than the full grid you get a gap without a panel. Most lattice functions puts the gap in the top right, but I would like to have it in the lower right, as marginal.plot does (see the picture). Is there a way to make other lattice functions do the same?

我知道面板顺序由条件变量的因子级别的顺序或使用index.cond参数决定,但这对我没有帮助.我试图破译marginal.plot的代码,但是还没有弄清楚,所以对您有所帮助!

I know the panel order is decided by the order of the factor levels of the conditioning variable, or by using the index.cond argument, but that does not help me here. I have tried to decipher the code of marginal.plot, but haven't been able to figure it out, so any help is appreciated!

推荐答案

对于大多数晶格图,as.table=TRUE选项应通过首先填充最上面一行而不是最下面一行来做到这一点.

The as.table=TRUE option should do this for most lattice plots by filling in the top row first instead of the bottom row.

这篇关于控制空格子面板的放置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆