# create binary data matrix
wtab <- as.data.frame(Titanic)
bdat <- cbind(wtab$Sex=="Male",
wtab$Age=="Child",
wtab$Survived=="Yes")
# compute similarities
library("proxy")
d <- as.matrix(simil(bdat, method='Jaccard'))
heatmap(d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.