Skip to content

Instantly share code, notes, and snippets.

@gluc
Created October 19, 2015 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gluc/b385cf03eda6387b16d4 to your computer and use it in GitHub Desktop.
Save gluc/b385cf03eda6387b16d4 to your computer and use it in GitHub Desktop.
Problem Pandoc / Mermaid
---
title: "Untitled"
author: "cg"
date: "Monday, October 19, 2015"
output: html_document
---
```{r}
library(DiagrammeR)
s <- "graph LR
a[$960k] --> |Sign with TV Network| b(($900k))
a[$960k] --> |Sign with Movie Company| f(($960k))
b --> |Large Box Office: 0.1| c[$900k]
b --> |Medium Box Office: 0.6| d[$900k]
b --> |Small Box Office: 0.3| e[$900k]
f --> |Large Box Office: 0.1| g[$3000k]
f --> |Medium Box Office: 0.6| h[$1000k]
f --> |Small Box Office: 0.3| i[$200k]
classDef default fill:none, bg:none, stroke-width:0px, font-size:10px;
classDef decision fill:#9f6,stroke:#333,stroke-width:1px;
classDef chance fill:red,stroke:#333,stroke-width:1px;
class a decision;
class b,f chance;"
DiagrammeR(s)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment