| sqlhexbin {surveyNG} | R Documentation |
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
sqlhexbin(formula, design, xlab = NULL, ylab = NULL, ..., chunksize = 5000)
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 |
Unlike most functions for sqlsurvey objects, this fetches all observations for the specified variables, and so would be slow over a network link.
A object of S4 class hexbin, invisibly.
Carr, D. B. et al. (1987) Scatterplot Matrix Techniques for Large N. JASA 83, 398, 424-436.
## 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)