The following is code to initialize an Splot object and add three sets of interactive data to figure 2:

Load Library
library(sendplot)

Set up data
mat = matrix(c(rep(c(rep(4,8),rep(0,5)),2),
                         rep(c(rep(1,8),rep(3,5)),6),
                         rep(c(rep(2,8),rep(3,5)),4)),
                         byrow=T, ncol=13)
mai.mat = matrix(.5,ncol=4,nrow=4)
myX = c(-1,-10,1,10,-5,0)
plot.calls = c("boxplot(count ~ spray, data = InsectSprays, col = 'lightgray')",
                      "plot(1:3,1:3, col='blue', xlab='', ylab=''); points(1:2, 2:3, col='red')",
                      "image(1:2,1:3, z=matrix(myX,ncol=3,nrow=2), xlab='', ylab='')",
                      "plot(cos, xlim = c(-pi,3*pi), n = 1001, col = 'blue', xlab='', ylab='')" )
plt.extras = list(figure1= "rect(xleft=c(3,1), ytop=c(25,5),xright=c(4,2), ybottom=c(20,0));title(main='A', cex=3)",
                        figure2="polygon(x=c(2,2.5,3,2.5), y=c(1,2.5,1,1.5));title(main='B', cex=3)",
                        figure3 ="title(main='C', cex=3)",
                        figure4="title(main='D', cex=3)")

Initialize Splot Object
Splot = initSplot(mat, plot.calls, mai.mat = mai.mat,plot.extras =plt.extras)

Adding information to set of three data points
Set up data
x.lbls = as.data.frame(list(xLabel1:xyType=c("point1", "point2", "points3"), xLabel1:asLinks=c("im a link", "im a link", "im a link"))
y.links = as.data.frame(matrix(rep(NA, 9), nrow=3))
y.links[,1] = "code.html/codeFigure2.html, code.html/initializeObject.html"
y.links[,2] = "code.html/threepoints.interactive.html, code.html/interactiveFigure2.html"
y.links[,3] = "code.html/completeCodeFigure2.html, code.html/completeCode.html"
asLinks=c("code.html/completeCodeFigure2.html","code.html/completeCodeFigure2.html","code.html/completeCodeFigure2.html")

Add to object
Splot = makeImap(Splot, figure=2, xy.type="circle", x.pos=1:3, y.pos=1:3,
                               y.labels = list(tooltip.fontcolor=c("green", "green", "green"),tooltip.size=c("14", "14", "14"),
                                                      tooltip.background=c("transparent", "transparent", "transparent")),
                               asLinks = asLinks, x.labels = x.lbls, fname.root="sendPlotEx", y.links=y.links,
                               bb.cex=5, spot.radius=20, font.color="green",bg.color="", font.size="14" )
Adding Information to set of two data points
Set up data
y.lbls = as.data.frame(list(xLabel1.xyType=c("point1", "point2"), xLabel1.asLinks=c("im not a link", "im not a link")))
y.links = as.data.frame(matrix(rep(NA, 6), nrow=2))
y.links[,1] = "code.html/codeFigure2.html, code.html/initializeObject.html"
y.links[,2] = "code.html/twopoints.interactive.html, code.html/interactiveFigure2.html"
y.links[,3] = "code.html/completeCodeFigure2.html, code.html/completeCode.html"

Add to object
Splot = makeImap(Splot, figure=2, xy.type="circle", x.pos=1:2, y.pos=2:3,
                               x.labels = list(tooltip=c("default settings", "default settings")),
                               y.labels = y.lbls, fname.root="sendPlotEx", y.links=y.links,
                               bb.cex=5,spot.radius=15)
Adding Information to polygon
Set up data
x.links = as.data.frame(matrix(rep(NA, 3), nrow=1))
x.links[,1] = "code.html/codeFigure2.html, code.html/initializeObject.html"
x.links[,2] = "code.html/polygon.interactive.html, code.html/interactiveFigure2.html"
x.links[,3] = "code.html/completeCodeFigure2.html, code.html/completeCode.html"
names(x.links) = c("code", "interactive", "completeCode")

Add to object
Splot = makeImap(Splot, figure=2, xy.type="polygon", x.pos=c(2,2.5,3,2.5), y.pos=c(1,2.5,1,1.5),
                               x.labels = as.data.frame(list(xLabel.xyType = "Polygon")), asLinks="code.html/interactiveFigure2.html",
                               x.links=x.links,fname.root="exToy", bb.cex=5,
                               y.labels = as.data.frame(list(yLabel1.asLinks="Im a link", tooltip.fonttype="san-serif",
                                                                            tooltip.fontsize="30",tooltip.fontcolor="purple" )),
                               font.size=30, font.type="sans-serif", font.color="purple")