2017-04-05 4 views
3

여러 페이지가있는 flexdashboard 문서를 만들었습니다. 나는 첫 번째 페이지에서 vetical_layout: fill을 원하지만 두 번째 페이지에서 나는 그 것을 원합니다. vertical_layout: scroll. 내 문서는 다음과 같이 시작합니다flexdashboard에서 여러 페이지의 다른 유형의 vertical_layout과 결합

--- 
title: "DASHBOARD" 
output: 
    flexdashboard::flex_dashboard: 
    orientation: columns 
    logo: logo.png 
    vertical_layout: fill 
--- 

가 어떻게이 vertical_layout: scroll와 두 번째 페이지를 볼 수 있습니까?

답변

3

개별 (H2) 열의 글로벌 vertical_layout 값을 무시할 수 있습니다.

--- 
title: "Changing Vertical Layout" 
output: 
    flexdashboard::flex_dashboard: 
    orientation: columns 
    vertical_layout: fill 
--- 

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

Page 1 
================================ 

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

### Panel A 
```{r} 
qplot(cars$speed) 
qplot(cars$dist) 
``` 

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

### Panel B 
```{r} 
qplot(cars$speed) 
``` 

### Panel C 
```{r} 
qplot(cars$dist) 
``` 

Page 2 
================================ 

Column { vertical_layout: scroll} 
----------------------------------------------------------------------- 

### Panel A 
```{r} 
qplot(cars$speed) 
qplot(cars$dist) 
``` 

```{r} 
qplot(cars$speed) 
qplot(cars$dist) 
``` 

```{r} 
qplot(cars$speed) 
qplot(cars$dist) 
``` 

enter image description here 찾는 글로벌 값을 무시 유사한 예이다. (그러나 in this case, 그들은 페이지 (H1) 레벨에서 방향을 변경합니다).