Examples for 'hexbin::hexbinplot'


Trellis Hexbin Displays

Aliases: hexbinplot hexbinplot.formula panel.hexbinplot prepanel.hexbinplot hexlegendGrob

Keywords: dplot

### ** Examples

mixdata <-
    data.frame(x = c(rnorm(5000),rnorm(5000,4,1.5)),
               y = c(rnorm(5000),rnorm(5000,2,3)),
               a = gl(2, 5000))
hexbinplot(y ~ x, mixdata, aspect = 1,
           trans = sqrt, inv = function(x) x^2)
plot of chunk example-hexbin-hexbinplot-1
hexbinplot(y ~ x | a, mixdata)
plot of chunk example-hexbin-hexbinplot-1
hexbinplot(y ~ x | a, mixdata, style = "lattice",
           xbnds = "data", ybnds = "data")
Warning in fun(maxcnt = base::quote(70L), trans = base::quote(NULL), inv =
base::quote(NULL), : legend shows relative sizes
plot of chunk example-hexbin-hexbinplot-1
hexbinplot(y ~ x | a, mixdata, style = "nested.centroids")
plot of chunk example-hexbin-hexbinplot-1
hexbinplot(y ~ x | a, mixdata, style = "nested.centroids",
           border = FALSE, type = c("g", "smooth"))
plot of chunk example-hexbin-hexbinplot-1

[Package hexbin version 1.28.2 Index]