R柔性仪表板布局,带标签和面板。

问题描述 投票:0回答:1

我对有两个标签的柔性板布局感兴趣,每个标签内的布局被分割成三块瓷砖或面板。

这将给我一个有三个面板的布局,这很好。

---
title: "Panels"
output: 
  flexdashboard::flex_dashboard:
    orientation: columns
    vertical_layout: fill
---

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

Column {data-width=650}
-----------------------------------------------------------------------

### Chart A

```{r}
```

Column {data-width=350}
-----------------------------------------------------------------------

### Chart B

```{r}
```

### Chart C

```{r}
```

这将给我一个有两个标签的布局。

---
title: "Tabs"
output: 
  flexdashboard::flex_dashboard:
    orientation: columns
    vertical_layout: fill
---

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

Column {.tabset}
-------------------------------------

### Sheet 1

```{r}
```   

### Sheet 2

```{r}
```

我怎样才能把这两者放在一起,使我的布局看起来像下面这样。

enter image description here

r flexdashboard
1个回答
1
投票

你需要在你的 YAML 在您提供的第一个例子中,头。

Sheet1
===

在你提供的第一个例子中: === 将附加标签到您的仪表板。

所以它看起来像。

---
title: "Panels"
output: 
  flexdashboard::flex_dashboard:
    orientation: columns
    vertical_layout: fill
---
Sheet1
===

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

Column {data-width=650}
-----------------------------------------------------------------------

### Chart A

```{r}
```

Column {data-width=350}
-----------------------------------------------------------------------

### Chart B

```{r}
```

### Chart C

```{r}
```

Sheet2
===

等...

© www.soinside.com 2019 - 2024. All rights reserved.