代码之家  ›  专栏  ›  技术社区  ›  antonoyaro8

删除R中的空格

  •  0
  • antonoyaro8  · 技术社区  · 2 年前

    我在这里找到了我想要遵循的教程: https://beta.rstudioconnect.com/jjallaire/htmlwidgets-showcase-storyboard/htmlwidgets-showcase-storyboard.html

    我想尝试找到一种方法来删除选项卡中出现的“空格”(例如,删除红线下方的空格):

    enter image description here

    有办法在R中做到这一点吗?我试着遵循这里这篇文章中推荐的建议( Format tab icon size in R flexdashboard )并手动更改字体大小,希望这能起作用:

    ---
    title: "Untitled"
    output: 
      flexdashboard::flex_dashboard:
        orientation: columns
        vertical_layout: fill
    ---
    
    ```{r setup, include=FALSE}
    library(flexdashboard)
    ```
    <style>
    .active {
      font-size:15px;
    }
    </style>
    
    a_tab_name {data-icon="fa-calendar"}
    =====================================
    
    
    Column {data-width=150}
    -----------------------------------------------------------------------
    
    ### Chart B
    
    ```{r}
    
    ```
    
    ### Chart C
    
    ```{r}
    
    ```
    

    这似乎奏效了——但有没有一种自动的方法可以指示R删除这些选项卡中的所有空格?

    非常感谢。

    1 回复  |  直到 2 年前
        1
  •  2
  •   Shafee ikashnitsky    2 年前

    使用 height: auto


    ---
    title: "HTML Widgets Showcase"
    output: 
      flexdashboard::flex_dashboard:
        storyboard: true
        social: menu
        source: embed
    ---
    
    ```{r setup, include=FALSE}
    library(flexdashboard)
    ```
    
    ```{css}
    .storyboard-nav .sbframelist ul li {
        height: auto;
    }
    ```
    
    
    ### Leaflet is a JavaScript library for creating dynamic maps that support panning and zooming along with various annotations.
    
    
    ### d3heatmap creates interactive D3 heatmaps including support for row/column.
    
    
    ### Dygraphs provides rich facilities for charting time-series data in R and includes support for many interactive features.
    
    
    ### Plotly provides bindings to the plotly.js library 
    
    

    看起来,

    flex_dash_board