R:格子图/线框:将面板图拆分成单个图

时间:2022-10-22 14:55:58

How can I force wireframe panels to produce single plots instead of one panel plot/grid plot? The reason is that if I have to produce a Sweave/ Pdf File the original wireframe plot, which R produces and which you can see in my other post

如何强制线框面板生成单个图而不是一个面板图/网格图?原因是如果我必须生成一个Sweave / Pdf文件原始线框图,R产生哪个,你可以在我的其他帖子中看到

Faceted Lattice Plots in R, e.g., wireframes: How to remove strips and add 1-Line subtitles.

R中的刻面格子图,例如线框:如何删除条带并添加1行字幕。

will look very small, especially if I have many many single wireframe plots. I can handle single plots more easily in Sweave.

看起来会很小,特别是如果我有很多单线框图。我可以在Sweave中更轻松地处理单个地块。

1 个解决方案

#1


Lattice allows you to specify the number of columns and rows for the plots which then spill over onto adjacent pages if a multi-page device is used:

Lattice允许您指定绘图的列数和行数,如果使用多页设备,则会将这些列和行溢出到相邻页面上:

 pdf("nine.pdf", onefile=TRUE, paper="special")
 wireframe(pred~Sepal.Width+Petal.Width|interaction(Species,Petal.Length),
            pd, drape=FALSE,scale=list(arrows=FALSE), subset=(Species=="setosa"), 
           layout=c(1,1,9))
 dev.off()

On the console device they create new plots which stack up in the plot device and you can "scroll-back" with keystrokes that may vary depending on your unstated OS. The eps format is accessible using directions in ?ps.

在控制台设备上,他们创建了新的图表,这些图表在绘图设备中叠加,您可以使用按键“向后滚动”,这可能会因您未说明的操作系统而异。可以使用?ps中的方向访问eps格式。

#1


Lattice allows you to specify the number of columns and rows for the plots which then spill over onto adjacent pages if a multi-page device is used:

Lattice允许您指定绘图的列数和行数,如果使用多页设备,则会将这些列和行溢出到相邻页面上:

 pdf("nine.pdf", onefile=TRUE, paper="special")
 wireframe(pred~Sepal.Width+Petal.Width|interaction(Species,Petal.Length),
            pd, drape=FALSE,scale=list(arrows=FALSE), subset=(Species=="setosa"), 
           layout=c(1,1,9))
 dev.off()

On the console device they create new plots which stack up in the plot device and you can "scroll-back" with keystrokes that may vary depending on your unstated OS. The eps format is accessible using directions in ?ps.

在控制台设备上,他们创建了新的图表,这些图表在绘图设备中叠加,您可以使用按键“向后滚动”,这可能会因您未说明的操作系统而异。可以使用?ps中的方向访问eps格式。