我正在尝试为65英寸显示屏创建一个大型仪表板。我所拥有的数据由每组具有1个主要参数的变化(1-4)个参数组成。我想用一个主要图形显示这些组,在其下方单独绘制的参数:
[MAIN------GRAPH1] [MAIN------GRAPH4]
[PAR1][PAR2][PAR3] [PAR1][PAR2][PAR3]
[MAIN------GRAPH2] [MAIN------GRAPH5]
[PAR---1][PAR---2] [PAR1][PAR2][PAR3]
[MAIN------GRAPH3] [MAIN------GRAPH6]
[PAR1][PAR2][PAR3] [PAR---1][PAR---2]
我尝试按行排列flexdashboard,但是结果不能按预期工作。
这是我到目前为止所拥有的:
---
title: "Dashboard"
output:
flexdashboard::flex_dashboard:
orientation: rows
source_code: embed
---
Row {data-height=650}
-------------------------------------
### Chart1
```{r setup, include=FALSE}
library(dygraphs)
library(flexdashboard)
library(readr)
library(xts)
```
```{r}
graph
```
Row {data-height=350}
-------------------------------------
### Chart1Par1
```{r}
first parameter
```
### Chart1Par2
```{r}
second parameter
```
Row {data-height=650}
-------------------------------------
### Chart2
```{r}
second chart main
```
Row {data-height=350}
-------------------------------------
### Chart2Par1
```{r}
```
### Chart2Par2
```{r}
```
我期望:
[MAIN------GRAPH1]
[PAR---1][PAR---2]
[MAIN-----------2]
[PAR2--1][PAR2--2]
我得到:
[MAIN-------GRAPH1]
[PAR1][PAR2][MAIN2]
[PAR2---1][PAR2--2]
答案 0 :(得分:2)
可能与您的间距有关-经过一些编辑后,我将其输出到所需的布局:
---
title: "Untitled"
output:
flexdashboard::flex_dashboard:
orientation: rows
vertical_layout: scroll
---
Row {data-height=650}
-------------------------------------
### Chart1
```{r setup, include=TRUE}
library(dygraphs)
library(flexdashboard)
library(readr)
library(xts)
```
```{r}
#graph
```
Row {data-height=350}
-------------------------------------
### Chart1Par1
```{r}
#first parameter
```
### Chart1Par2
```{r}
#second parameter
```
Row {data-height=650}
-------------------------------------
### Chart2
```{r}
#second chart main
```
Row {data-height=350}
-------------------------------------
### Chart2Par1
```{r}
```
### Chart2Par2
```{r}
```