Displaying 1 result from an estimated 1 matches for "hexplot".
Did you mean:
heplot
2007 Oct 19
1
Using grid graphics (hexbin) in pairs() plot problem
...custom upperPanel function:
pairs(iris[1:4], panel=mypanel)
and mypanel() calls plot.hexbin():
library(hexbin) # Bioconductor
mypanel <- function(x, ...){
hb <- hexbin(x)
plot(hb)
}
The problem is that gplot.hexbin() is based
on the grid-graphics, and each hexplot
goes over my complete graphics device.
I suspect that I can use the gridBase package
to put the two together, but I am somehow lost.
The gridBase documentation contains a sample
which has a normal ("base") plot with two columns,
and some code to use grid commands to paint rectangles....