This function allows the user to place smoothScatter
plots in
lattice graphics.
1 2 3 4 5 6 7 8 9 10 11 12 13 
x 
Numeric vector containing xvalues or n by 2 matrix containing x and y values. 
y 
Numeric vector containing yvalues (optional). The length of 
nbin 
Numeric vector of length 1 (for both directions) or 2 (for x and y separately) containing the number of equally spaced grid points for the density estimation. 
cuts 
number of cuts defining the color gradient 
bandwidth 
Numeric vector: the smoothing bandwidth. If missing,
these functions come up with a more or less useful guess. This
parameter then gets passed on to the function

colramp 
Function accepting an integer 
nrpoints 
Numeric vector of length 1 giving number of points to
be superimposed on the density image. The first 
transformation 
Function that maps the density scale to the color scale. 
pch, cex 
graphical parameters for the 
range.x 
see 
col 

... 
Further arguments that are passed on to

raster 
logical; if 
subscripts 
ignored, but necessary for handling of ... in certain situations. Likely to be removed in future. 
identifier 
A character string that is prepended to the names of grobs that are created by this panel function. 
This replicates the display part of the smoothScatter
function by replacing standard graphics calls by gridcompatible ones.
The function is called for its side effects, namely the production of the appropriate plots on a graphics device.
Deepayan Sarkar deepayan.sarkar@rproject.org
1 2 3 4 5  ddf < as.data.frame(matrix(rnorm(40000), ncol = 4) + 3 * rnorm(10000))
ddf[, c(2,4)] < (ddf[, c(2,4)])
xyplot(V1 ~ V2 + V3, ddf, outer = TRUE,
panel = panel.smoothScatter, aspect = "iso")
splom(ddf, panel = panel.smoothScatter, nbin = 64, raster = TRUE)

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.