Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R 晶格xyplot-用于将组划分为子图的矩阵_R_Plot_Lattice - Fatal编程技术网

R 晶格xyplot-用于将组划分为子图的矩阵

R 晶格xyplot-用于将组划分为子图的矩阵,r,plot,lattice,R,Plot,Lattice,我有一个带有群参数的格子xyplot。用于分组的变量有5个不同的值,绘图被划分为2x3矩阵,右上角有一个空框。但是,我想将绘图划分为1x5矩阵。我该怎么做 这是我的密码: xyplot(prop ~ indtegn_alder | salgskanal, data=fewGrid2,type='smooth',span=0.20, lwd=2.5, xlab="Alder", ylab="Sandsynlighed", ylim=c(0,0.5), group= first_k

我有一个带有群参数的格子xyplot。用于分组的变量有5个不同的值,绘图被划分为2x3矩阵,右上角有一个空框。但是,我想将绘图划分为1x5矩阵。我该怎么做

这是我的密码:

   xyplot(prop ~ indtegn_alder | salgskanal,
   data=fewGrid2,type='smooth',span=0.20, lwd=2.5,
   xlab="Alder", ylab="Sandsynlighed", ylim=c(0,0.5), group= first_kundetype)

请参阅
xyplot
帮助页面上的
布局=
参数。它允许您指定所需的列数和行数

xyplot(prop ~ indtegn_alder | salgskanal,
data=fewGrid2,type='smooth',span=0.20, lwd=2.5,
xlab="Alder", ylab="Sandsynlighed", ylim=c(0,0.5), group= first_kundetype,
layout=c(1,5))