Scaling plotly figures in knitr Latex document
I'm trying to include a plotly chart into a Latex document with knitr. Since knitr includes the webshot package this works well. But if I want to resize my figure for the latex output, the figure environment gets bigger but the plotly chart is not scalled to the manually set figure width and height. Specifing the webshot options like recommend here , did not work neither. Scaling a ggplot chart works well, but how can I get the same results for the plotly chart? \documentclass{article} \usepackage{cleveref} <<setup, echo=FALSE, message = FALSE, warning = FALSE>>= library(ggplot2) library