[BioC] multiple hexbin plots
Deepayan Sarkar
deepayan.sarkar at gmail.com
Thu Sep 22 22:55:19 CEST 2005
On 9/22/05, Giovanni Coppola <gcoppola at ucla.edu> wrote:
> Hi all,
> I am trying to have an output with multiple hexbin plots. I tried par
> (mfrow), layout (), and split.screen() without success.
> Should I move to lattice and grid packages?
To grid, yes, since hexbin is based on grid. E.g.,
grid.newpage()
pushViewport(viewport(layout=grid.layout(2, 3)))
for (k in 1:6) {
pushViewport(viewport(layout.pos.col = as.integer((k-1) / 2) + 1,
layout.pos.row = (k-1) %% 2 + 1))
plot(hexbin(RG$R[,k],RG$G[,k],xbin=50), ..., newpage = FALSE)
popViewport(1)
}
There's a lattice version hexbin in the works, but it hasn't been released yet.
Deepayan
> many thanks
> Giovanni
>
> example:
> par (mfrow = c(2,3))
>
> for(k in 1:6)
>
> plot(hexbin(RG$R[,k],RG$G[,k],xbin=50), colramp=BTY, colorcut=c
> (0,.1,.2,.3,.4,.6,1))
>
> #gives six separate outputs
>
> info:
> R 2.1.0 patched
> Mac OS-X
> [[alternative HTML version deleted]]
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
>
More information about the Bioconductor
mailing list