lattice.demo(x, y, z, show3d = TRUE)
xyplot
(lattice). When you
run the demo it will create a single panel from a conditioned
xyplot
and optionally a 3D cloud with the points included in
the panel highlighted. The function then opens a tcl/tk dialog box
that allows you to choose which points are included in the panel
(based on the conditioning variable). You can choose the center and
width of the shingle displayed and the graph will update to show the
new selection.
The intent for this function is for a teacher to show a class how
lattice graphics take slices of a 3d plot and show each slice
seperately. Students could then work through some examples on their
own to better understand what functions like xyplot
are doing
automatically.xyplot
require(stats)
lattice.demo(quakes$long, quakes$lat, quakes$depth)
Run the code above in your browser using DataLab