Plotly as png in knitr/rmarkdown

后端 未结 4 1259
一生所求
一生所求 2020-12-13 11:12

The following Rmarkdown renders the plotly 3D graph in HTML, but not in PDF.

Testing plotly

```{r}
library(plotly)
p <- plot_ly(data=iris, x=~Sepal.Lengt         


        
4条回答
  •  萌比男神i
    2020-12-13 11:18

    As @hrbrmstr commented, export() previously didn't support WebGL at all, but more recent versions support exporting to png via RSelenium (see help(export, package = "plotly")). If you need pdf export, you'll have to pay for a cloud account -- https://plot.ly/products/cloud/

提交回复
热议问题