tree.plot(basis, uniform=F, vshift=.02, min.cost=.01)
The length of the arcs between nodes indicates the cost "savings" acheived by splitting the parent node. Long arcs correspond to "important" splits. See the section "The Best Basis Algorithm" of the S+WAVELETS User's Manual for more details
yy <- make.signal("twochirp", 128) ww <- wp.table(yy, wavelet="s8", boundary="zero") bb <- best.basis(ww) # select the best basis tree.plot(bb) # tree plot for the best basisww.dwt <- as.dwt(ww) # extract DWT coefficients from wp.table tree.plot(ww.dwt)