sqlhexbin {surveyNG}R Documentation

Hexagonal binning

Description

Draws a scatterplot in which points are replaced by hexagons indicating the population weight in regions of the plot. Requires the "hexbin" package from Bioconductor

Usage

sqlhexbin(formula, design, xlab = NULL, ylab = NULL, ..., chunksize = 5000)

Arguments

formula Formula specifying the two variables to plot
design sqlsurvey object
xlab x-axis label
ylab y-axis label
... Other arguments to gplot.hexbin
chunksize Number of observations to fetch at a time

Details

Unlike most functions for sqlsurvey objects, this fetches all observations for the specified variables, and so would be slow over a network link.

Value

A object of S4 class hexbin, invisibly.

References

Carr, D. B. et al. (1987) Scatterplot Matrix Techniques for Large N. JASA 83, 398, 424-436.

See Also

sqlsurvey, sqlocpoly

Examples

## Not run: 
sqclus1<-sqlsurvey(id="dnum", fpc="fpc", weights="pw", strata="fpc",
   data=system.file("apiclus1.db",package="surveyNG"),
   table.name="clus1", key="snum")

sqlhexbin(api00~api99, design=sqclus1,style="centroid")-

close(sqclus1)
## End(Not run)

[Package surveyNG version 0.3 Index]