Plotly as png in knitr/rmarkdown

后端 未结 4 1255
一生所求
一生所求 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条回答
  •  一生所求
    2020-12-13 11:39

    Same issue with R markdown compile error:. You need to choose what format you want to KNIT to, tried to look at mine.

    ---
    title: ""
    subtitle: "[binary.com](https://github.com/englianhu/binary.com-interview-question) Interview Question I"
    author: "[®γσ, Lian Hu](https://englianhu.github.io/)  白戸則道®"
    date: "`r Sys.Date()`"
    output:
      tufte::tufte_html:
        toc: yes
      tufte::tufte_handout:
        citation_package: natbib
        latex_engine: xelatex
      tufte::tufte_book:
        citation_package: natbib
        latex_engine: xelatex
    link-citations: yes
    ---
    

提交回复
热议问题