【问题标题】:R flexdashboard with shiny - Sidebar带有闪亮的 R flexdashboard - 侧边栏
【发布时间】:2020-09-20 10:06:56
【问题描述】:

我正在尝试使用格式与this page 类似的 r 创建一个 flexdashboard。

我在 Shiny 中使用了 flexdashboard。

---
title: "title"
output: 
  flexdashboard::flex_dashboard:
    orientation: columns
    vertical_layout: fill
runtime: shiny
---

```{r setup, include=FALSE}
library(flexdashboard)
library(lubridate)
library(viridis)
library(plotly)
library(tidytext)
library(readr)
library(tidyverse)
```

```{r global, include=FALSE}
# read global data
```

```{r wrangling-data}
```


Sidebar {.sidebar}
=====================================

```{r}
# shiny inputs defined here
```

Introduction
=====================================  

### Intro

```{r}
```

Data
=====================================     

```{r}
```

Conclusion
=====================================     

```{r}
```

这会导致菜单项仍显示在顶部导航栏上。

但是,我想将导航宝贝移动到左侧,like this 并且还包括菜单项上的手风琴子菜单。

【问题讨论】:

    标签: r shiny flexdashboard


    【解决方案1】:

    您必须添加一个级别(只是一系列破折号--)。试试这个代码:

    ---
    title: "title"
    output: 
        flexdashboard::flex_dashboard:
        orientation: columns
    vertical_layout: fill
    runtime: shiny
    ---
    
    ```{r setup, include=FALSE}
    library(flexdashboard)
    library(lubridate)
    library(viridis)
    library(plotly)
    library(tidytext)
    library(readr)
    library(tidyverse)
    ```
    
    ```{r global, include=FALSE}
    # read global data
    ```
    
    ```{r wrangling-data}
    ```
    
    
    Sidebar {.sidebar}
    =====================================
    
    ```{r}
    # shiny inputs defined here
    
    ```
    Some text added
    
    -------------------------------------
    
    Introduction
    =====================================  
    
    ### Intro
    
    ```{r}
    ```
    
    Data
    =====================================     
    
    ```{r}
    ```
    
    Conclusion
    =====================================     
    
    ```{r}
    ```
    

    希望对你有帮助。

    【讨论】:

      猜你喜欢
      • 2019-11-13
      • 2016-02-26
      • 1970-01-01
      • 1970-01-01
      • 2017-06-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-21
      相关资源
      最近更新 更多