Johannes Radinger
2014-Dec-02 12:57 UTC
[R] Two wireframe plots (lattice) aside (grid.arrange) without outer box
Hi, I'd like to arrange two wireframe plots (library "lattice") next to each other using the grid.arrange function of the library "gridExtra". However the two wireframe plots should be closer to each other and the outer 2D box should be removed (to save space). To remove the outer box for a single plot I am using trellis.par.set("axis.line",list(col=NA,lty=1,lwd=1)) However this approach does not work in combination with grid.arrange(). Here a small working example: trellis.par.set("axis.line",list(col=NA,lty=1,lwd=1)) p1 <- wireframe(volcano, shade = TRUE, aspect = c(61/87, 0.4), light.source = c(10,0,10)) grid.arrange(p1,p1,nrow=1) Does anybody have any suggestions? /johannes [[alternative HTML version deleted]]