New to Plotly?
Plotly's R library is free and open source!
Get started by downloading the client and reading the primer.
You can set up Plotly to work in online or offline mode.
We also have a quick-reference cheatsheet (new!) to help you get started!
##  '4.5.2'
See also the chapter on subplots in the plotly book
library(plotly) p1 <- plot_ly(x = c(1, 2, 3), y = c(4, 3, 2)) p2 <- plot_ly(x = c(20, 30, 40), y = c(30, 40, 50)) %>% layout(xaxis = list(domain = c(0.6, 0.95)), yaxis = list(domain = c(0.6, 0.95))) p <- subplot(p1, p2) # Create a shareable link to your chart # Set up API credentials: https://plot.ly/r/getting-started chart_link = plotly_POST(p, filename="subplots/1") chart_link