R flexdashboard remove title bar

前端 未结 2 1520
太阳男子
太阳男子 2021-01-05 22:21

I am working on a project using rMarkdown and the flexdashboard package from rStudio. Everything is coming together nicely. B

2条回答
  •  庸人自扰
    2021-01-05 23:12

    You can just add CSS styling directly to your markdown document (no JQuery required):

    ---
    title: "Untitled"
    output: 
      flexdashboard::flex_dashboard:
        orientation: columns
        vertical_layout: fill
    ---
    
    
    
    ```{r setup, include=FALSE}
    library(flexdashboard)
    ```
    
    Column {data-width=650}
    -----------------------------------------------------------------------
    
    ### Chart A
    
    ```{r}
    hist(iris$Sepal.Length)
    
    ```
    
    Column {data-width=350}
    -----------------------------------------------------------------------
    
    ### Chart B
    
    ```{r}
    hist(iris$Sepal.Width)
    ```
    
    ### Chart C
    
    ```{r}
    hist(iris$Petal.Length)
    ```
    

    Results in:

提交回复
热议问题