R flexdashboard删除标题栏

标签 r r-markdown dashboard titlebar flexdashboard

Blue bar at the top, meant for a title

我正在使用 rMarkdown 处理一个项目和 flexdashboard包裹来自 rStudio .一切都很好地融合在一起。但我想删除您在此处图像顶部看到的蓝色标题栏。

我们将此 html 页面放入一个窗口中,使其成为第二个标题栏,这看起来很糟糕。 flexdashboard中是否有函数删除整个设备?

这是 YAML 和您在照片中蓝色条下方看到的第一个块。任何建议将不胜感激。

---
title: New Hampshire Statewide Age Adjusted Incedence Rates of Lyme
output: 
  flexdashboard::flex_dashboard:
    orientation: rows
---

```{r setup, include=FALSE, message=FALSE, warning=FALSE, echo=TRUE}

```

Row
-----------------------------------------------------------------------

### 
```{r, aarState, message=FALSE, warning=FALSE}

library(flexdashboard)
library(rbokeh)
#load state-wide age adjusted rates

aar<-read.csv("stateAAR.csv")
figure(title=" Age Adjusted Rates by Year",width= 1500, height =600) %>%
  ly_segments(year, lci*100000, year, uci*100000, data=aar, color = "#b37700", width = 1) %>%
  ly_points(year, adj.rate*100000, glyph = 21, size=6, data = aar, hover= "<strong>Rate per 100,000:</strong> @rateHundThou </br> <strong>Upper Confidence:</strong> @uciHT </br><strong> Lower Confidence:</strong> @lciHT " , color="#666622" )%>%

  x_axis(label ='Year')%>%
  y_axis(label ='Age Adjusted Rate')


```  

Row

最佳答案

您可以直接在 Markdown 文档中添加 CSS 样式(不需要 JQuery):

---
title: "Untitled"
output: 
  flexdashboard::flex_dashboard:
    orientation: columns
    vertical_layout: fill
---
<style>

body {
  padding-top:0px
}

.navbar{
  visibility: hidden
}

</style>


```{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)
```

结果:enter image description here

关于R flexdashboard删除标题栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43637756/

相关文章:

html - 如何在 R 中使用 readHTMLTable 读取注释掉的 HTML 表格

r - 将彩色矩形添加到滴定图

sql - 日期范围内的移动总和

html - 带有垫片/保险杠的动态宽度 div

r - R中的滑动窗口

r - 在 rmarkdown 中隐藏代码

r - 如何通过单击可执行的 r 文件从 rmd 脚本编织 pdf?

从函数渲染 R markdown

dashboard - 如何在CDE仪表板sql查询中获取正确的参数值?

configuration - CruiseControl.net 统计教程