Using DiagrammeR in Word document (generated using rMarkdown)
trelliscope
is useful: https://github.com/tesseradata/trelliscope
After installing http://phantomjs.org/download.html,You can generate word doc file by:
---title: "Test"author: "Test"date: "Monday, May 18, 2015"output: word_document---```{r include=FALSE}if (!require("DiagrammeR")) library("DiagrammeR")library(trelliscope)```Check out this diagram:```{r, include=FALSE}p = DiagrammeR::grViz(" digraph rmarkdown { node [shape = box ] 'A' -> 'B' } ")widgetThumbnail(p, paste0(getwd(), "/hoge.png"))```![](hoge.png)
Here is the screenshot. It looks perfect :)