
PROJECTIONS 149
txt <- format(c(r, 0.123456789), digits=digits)[1]
txt <- paste(prefix, txt, sep="")
if(missing(cex.cor)) cex.cor <- 0.8/strwidth(txt)
text(0.5, 0.5, txt, cex = cex.cor * r)
}
pairs(USJudgeRatings, lower.panel=panel.smooth, upper.panel=panel.cor)
We use the chemical diabetes classes cc to define selections. We assign a colour to each of these
selections. This is the linking attribute that allows us to trace relations between the plots. To
provide a documentation of this linking, we have to control the graphics and modify the plots.
Using the parameter oma we generate an outer margin to give space for a caption.
Example 4.3: Scatterplot