library(GGally)
d <- SharedData$new(iris)
p <- GGally::ggpairs(d, aes(colour = Species), columns = 1:5)
ggplotly(p) %>% layout(dragmode = "select")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.