c.trellis

Combining several lattice charts into one

Last week I mentioned the grid.arrange function of the gridExtra package that allows me to combine graphical grid objects onto one page. The latticeExtra package provides another elegant solution for trellis (lattice) plots: the function c.trellis() or just c() combines the panels of multiple trellis objects into one. Here is minimal example from the help file of c.trellis: library(latticeExtra) ## Combine different types of plots. c(wireframe(volcano), contourplot(volcano)) In my next example I am using data from Eurostat, the statistical office of the European Union, showing the use of public transport in four countries.