Skip to content

Is possible a mini-plot into a big plot with Lattice?

3 messages · Paul Murrell, Walmes Zeviani

#
Hi
On 27/05/2010 8:09 a.m., Walmes Marques Zeviani wrote:
Something like ... ?

library(lattice)
library(grid)
qqmath(x,
        panel=function(...) {
            panel.qqmath(...)
            panel.abline(a=0, b=1)
            pushViewport(viewport(.02, .5, .48, .48,
                                  just=c("left", "bottom")))
            print(histogram(x, xlab=NULL, ylab=NULL,
                            scales=list(draw=FALSE)),
                  newpage=FALSE)
            popViewport()
        })

Paul