Knitting RMarkdown with ggvis to Word

杀马特。学长 韩版系。学妹 提交于 2019-12-04 09:34:56

Here is an example:

```{r setup, include=FALSE}
library(dplyr)
library(ggvis)
```

The following table looks fine...
As long as I don't include this plot below

```{r, echo=FALSE, include=FALSE}
p <- pressure %>%
  ggvis(x = ~temperature, y = ~pressure) %>%
  layer_bars()
export_png(p, file = "hoge.png")
```

![](hoge.png)

If you will use this frequently, you can define hook.

Paweł Kleka
  1. First go to Node JS Download page
  2. After instaling node.js, in terminal run:

    npm install vega

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!