multiple hexbin plots
1
0
Entering edit mode
@giovanni-coppola-893
Last seen 9.6 years ago
An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/bioconductor/attachments/20050922/ 9680da83/attachment.pl
• 855 views
ADD COMMENT
0
Entering edit mode
@deepayan-sarkar-1436
Last seen 6 months ago
United States
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 >
ADD COMMENT

Login before adding your answer.

Traffic: 1019 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6