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'
Customize Margins and Plot Size
library(plotly) m <- list( l = 50, r = 50, b = 100, t = 100, pad = 4 ) p <- plot_ly(x = seq(0, 8), y = seq(0, 8)) %>% layout(autosize = F, width = 500, height = 500, margin = m) # Create a shareable link to your chart # Set up API credentials: https://plot.ly/r/getting-started chart_link = plotly_POST(p, filename="sizing/1") chart_link