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.9.1'
library(plotly) set.seed(123) df <- diamonds[sample(1:nrow(diamonds), size = 1000),] p <- ggplot(df, aes(carat, price)) + geom_point() + theme(axis.ticks = element_line(size = 10)) p <- ggplotly(p) p
Inspired by ggplot2 documentation