Diagrams

Quarto has support for mermaid & graphviz textbased diagram languages.

This makes it easy to include diagrams as an explanatory tool in course material.

Examples

Analysis pipeline diagram

This diagram is part of the observable.js example page. Below is the diagram and its mermaid code

flowchart LR
  samples["Airway cells<br/>untreated vs<br/> dexamethasone-treated"]
  rnaseq["RNA-seq<br/>counts per gene"]
  table["Prepared results table"]
  volcano["Interactive volcano plot"]

  samples --> rnaseq
  rnaseq --> table
  table --> volcano

```{mermaid}
flowchart LR
  samples["Airway cells<br/>untreated vs<br/> dexamethasone-treated"]
  rnaseq["RNA-seq<br/>counts per gene"]
  table["Prepared results table"]
  volcano["Interactive volcano plot"]

  samples --> rnaseq
  rnaseq --> table
  table --> volcano
```

Example: Pie chart

Mermaid offers various chart types, here is a pie chart taken from the mermaid documentation.

pie title Pets adopted by volunteers
    "Dogs" : 386
    "Cats" : 85
    "Rats" : 15

```{mermaid}
%%| fig-align: center
pie title Pets adopted by volunteers
    "Dogs" : 386
    "Cats" : 85
    "Rats" : 15
```