[R] gplot.hexbin - how to set figure margin.

Martin Maechler maechler at stat.math.ethz.ch
Wed Nov 10 10:07:58 CET 2004


This is really about the development version of a bioconductor
package, so why didn't you contact the package maintainer or authors, as
the posting guide asks you?

This (unreleased) version of hexbin is working with 
"grid" based graphics
       ===> no par() mess.

One reason that it is "development"  *is* the fact that 
currently, you really have to know grid graphics pretty well,
before you can customize hexbin plots.

To learn about grid,
start reading 
Paul (= grid's prinicipal author)'s Keynote speech at the
useR!2004 conference:
   http://www.ci.tuwien.ac.at/Conferences/useR-2004/Keynotes/
and then
   browseURL(system.file("doc/index.html", package="grid"))

Martin Maechler (2nd author of "hexbin").

>>>>> "Eryk" == Eryk Wolski <wolski at molgen.mpg.de>
>>>>>     on Tue, 09 Nov 2004 20:30:35 +0100 writes:

    Eryk> Hi,
    Eryk> Would like to use to the hexbin package to plot a 2D hist - because it looks really _cool_.
    Eryk> My problem  is related to  drawing a pdf hexbin graphic in series of other graphics.
    Eryk> All other figures have a par(mar=c(3.2,3.2,1,1)). So the gplot.hexbin figure in this series looks a little alienated?

    Eryk> Was trying a to specify the _mar_ using par, viewport, hexViewport etc. a little.

    Eryk> My question. How to set the margins in the sample code below. 


    Eryk> x <- rnorm(10000)
    Eryk> y <- rnorm(10000)
    Eryk> bin <- hexbin(x,y)

    Eryk> ## Plot : Note that 'gplot.hexbin' is the S4 plot method for hexbin !
    Eryk> ## ----              ------------         --------------
    Eryk> plot(bin)

This

    Eryk> /E


    Eryk> Dipl. bio-chem. Eryk Witold Wolski             @    MPI-Moleculare Genetic   
    Eryk> Ihnestrasse 63-73 14195 Berlin                'v'                            
    Eryk> tel: 0049-30-83875219                        /   \                           
    Eryk> mail: witek96 at users.sourceforge.net        ---W-W----                        
    Eryk> http://r4proteomics.sourceforg.net

    Eryk> ______________________________________________
    Eryk> R-help at stat.math.ethz.ch mailing list
    Eryk> https://stat.ethz.ch/mailman/listinfo/r-help
    Eryk> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list