14 图片
14.1 交叉引用
示例:https://quarto.org/docs/authoring/figures.html#cross-references
14.2 自定义图表标题
---
title: "title content"
crossref:
fig-title: 图
tbl-title: 表
title-delim: —
tbl-prefix: 表
fig-prefix: 图
---
15 图片设置
```{r}
#| fig-dpi: 100
#| fig-format: svg
#| fig-width: 10
```
16 流程图,Diagram
- 官网介绍 http://mermaid.js.org/syntax/flowchart.html
- 官网介绍 https://quarto.org/docs/authoring/diagrams.html
16.1 举例
16.1.1 例1
代码如下:
%%| echo: fenced
flowchart LR
A[Hard edge] --> B(Round edge)
B --> C{Decision}
C --> D[Result one]
C --> E[Result two]
16.1.2 例2
代码如下:
%%| echo: fenced
sequenceDiagram
participant Alice
participant Bob
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts <br/>prevail!
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!