使用R中的晶格封装的不同比例的多面板图 [英] Different scales of multipanel plots using lattice package in R

查看:91
本文介绍了使用R中的晶格封装的不同比例的多面板图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在此页中遵循了agstudy的脚本 并制作了类似这样的箱形图面板

I followed the script of agstudy in this page and produced panel of box-plots like this Figure

但是我有另外一种问题;变量的范围是不同的.因此,除水分"以外的地块均未正确缩放.如何强制晶格按照自己的范围缩放图?预先感谢.

But the I have a different kind of problem; the ranges of the variables are different. Therefore, plots except for 'moisture' are not properly scaled. How can I force lattice to scale the plots as per their own range? Thanks in advance.

推荐答案

通过点阵,您可以通过"relation"属性使每个面板具有自己的比例尺. 免费"选项可让所有面板独立.有关其他选项,请参见?xyplot.

With lattice, you can make each panel have it's own scales with the "relation" property. The "free" option lets all of the panels be independent. See ?xyplot for other options.

 bwplot(value~Label |variable,    ## see the powerful conditional formula 
        data=dat.m,
        between=list(y=1),
        main="Bad or Good", scales=list(relation="free"))

这篇关于使用R中的晶格封装的不同比例的多面板图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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