pairs
or
coplot
to determine what kind of plotting is done in each panel
of a multi-panel graphical display.panel.contour(x, y, ..., sigma = NULL)panel.image(x, y, ..., sigma = NULL)
panel.histogram(x, ...)
contour.im
,
plot.im
or rect
, respectively,
to control thpanel
,
lower.panel
, upper.panel
, diag.panel
passed to graphics commands like
pairs
or coplot
,
to determine what kind of plotting is done in each panel
of a multi-panel graphical display. In particular they work
with pairs.im
. The functions panel.contour
and panel.contour
are suitable for the off-diagonal plots which involve
two datasets x
and y
.
They first rescale x
and y
to the unit square,
then apply kernel smoothing with bandwidth sigma
using density.ppp
.
Then panel.contour
draws a contour plot
while panel.image
draws a colour image.
The function panel.histogram
is suitable for the
diagonal plots which involve a single dataset x
.
It displays a histogram of the data.
pairs.im
,
pairs.default
,
panel.smooth
with(bei.extra,
pairs(grad, elev,
panel = panel.contour,
diag.panel = panel.histogram))
Run the code above in your browser using DataLab