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