有一个博客条目描述了从图形API嵌入R到R降价.我只是使用代码为html文档创建iframe
当我在R studio中有prieview时,没有错误消息,并且在html文档中创建了iframe.但是,它只是空的.显然它不会以某种方式加载内容.我之前没有在R API中创建绘图(但这不应该重要,因为这只是将图片嵌入到html中)不是吗?
我目前在r markdown中的代码
```{r}
library("knitr")
library("devtools")
url<-"https://plot.ly/~etpinard/251"
plotly_iframe <- paste("<iframe scrolling='no' seamless='seamless' src='", url,
"/800/600' width='800' height='600'></iframe>", sep = "")
```
`r I(plotly_iframe)`
Run Code Online (Sandbox Code Playgroud)