library("MASS") # for Boston Housing data
tab <- table(Boston$chas, Boston$rad)
pdf("barchart_stacked.pdf", width=10, height=5, bg="transparent")
barplot(tab, col=c("blue","red"),bg="transparent")
dev.off()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.