Grid Plot for a Packet Transform

DESCRIPTION:

Displays the frequency partitioning for a wavelet packet transform or the spatial partitioning for a cosine packet transform.

This function is an S Version 3 generic (see Methods); method functions can be written to handle specific S Version 3 classes of data. Classes which already have methods for this function include:
crystal.list, crystal.vector, crystal.matrix

USAGE:

pgrid.plot(x, xlab="", ylab=NULL, add=F, axes=T,  
           grid.lty=par("lty")+1, labels=F,  
           J=max(wave.levels(x)), dim=c(2^J, 2^J), 
           x.srt=90, y.srt=0, ...) 

REQUIRED ARGUMENTS:

x
a 1-D or 2-D wavelet packet transform or cosine packet transform or a vector of 1-D or 2-D crystal names (see crystal.names).

OPTIONAL ARGUMENTS:

xlab
label to place below the x-axis.
ylab
label to place beside the y-axis.
add
logical flag. If TRUE, grid will be added to existing plot. For 2-D case only.
axes
logical flag. If TRUE, axes will be added to the plot. For 2-D case only.
grid.lty
integer giving the line type for the grid. See the lty argument for par.
labels
logical flag. If TRUE, names will be added inside the boxes. For 2-D case only.
J
an integer determining the dim argument. For 2-D case only.
dim
dimensions of the image on which to plot or add the grid. For 2-D case only.
x.srt
string rotation for x.axis, same as srt in par.
y.srt
string rotation for y.axis, same as srt in par.
...
additional arguments can be passed to plot or text.

SIDE EFFECTS:

produces a grid plot displaying the coefficient blocks for the transform.

DETAILS:

For 1-D transforms, pgrid.plot displays the positions in a wavelet packet or cosine packet table of the coefficient blocks (crystals) in the transform. See the section "Wavelet Packet Transforms" of the S+WAVELETS User's Manual for details. For 2-D wavelet packet transforms, pgrid.plot displays grid showing the frequency partitioning of the transform. For 2-D cosine packet transforms, pgrid.plot displays grid showing the spatial partitioning of the transform. See the chapter "Wavelet Packet and Cosine Packet Analysis of Images" of the S+WAVELETS User's Manual for details.

SEE ALSO:

, , , , , .