old.par<- par(no.readonly=TRUE) # these functions may leave the device in
# with some funny defaults
#
#multiresolution of John Lennon
data(lennon)
Wtransform.image( lennon, cut.min=16)->look
plot.Wimage( look, cut.min=16)
# adding information
plot.Wimage( look, cut.min=16, Nlevel=3, graphics.reset=FALSE)-> plot.layout
# plot.layout here is a 4X3 matrix with the screen numbers
# move to the smooth coefficients plot
screen( plot.layout[1,1])
plot( c(.5,16.5), c( .5,16.5), type="n",axes=FALSE)
points( 8,8, cex=2, pch="+")
# NOTE: just points( 8,8) will not work here. This has to do with split.screen not
# reseting the plotting pars correctly.
box(col=6, lwd=2)# just for fun
close.screen( all=TRUE)
par( old.par) # reset to old settings
Run the code above in your browser using DataLab