library(ggplot2) library(plotly) library(htmlwidgets)
p <- ggplot(mpg, aes(x = displ, y = hwy, color = class)) + geom_point()
p_plotly <- ggplotly(p)
saveWidget(p_plotly, “plot.html”, selfcontained = TRUE)
browseURL(“plot.html”)
rmarkdown::render(“plot_rapport.Rmd”)