改变xyplot面板盒的高度

时间:2015-10-08 09:45:40

标签: r plot panel box

我的情节(xyplotlattice)看起来像是:

enter image description here

它看起来很不错,但我怎样才能控制灰色面板框的高度?

我试过了:

strip=strip.custom( par.strip.text=list(cex=2,lines=5,lineheight=2))

但这不起作用。

1 个答案:

答案 0 :(得分:3)

您想要更改条带高度:

library(lattice)
Depth <- equal.count(quakes$depth, number=8, overlap=.1)
xyplot(lat ~ long | Depth, data = quakes, par.strip = list(lines = 5, cex = 0.5))

enter image description here