【发布时间】:2019-06-29 12:15:08
【问题描述】:
我想为我的 flexdashboard 上的每个框涂上不同的颜色。例如,我希望框 1 内的背景为蓝色,框 2 内的背景为绿色,依此类推。
谁能告诉我这是否可行,如果可以,请问如何做到这一点?
我在下面附上了一段示例代码。
由于要输入的信息不止一条,我无法使用值框。
非常感谢,
title: "Example"
output:
flexdashboard::flex_dashboard:
orientation: columns
vertical_layout: fill
---
```{r setup, include=FALSE}
library(flexdashboard)
```
Column {data-width=450}
-----------------------------------------------------------------------
### Box 1
```{r}
x = 5
y =6
```
In this example `r x` is smaller than `r y`
### Box 2
```{r}
x = 5
y =6
z= 4
```
In this example `r x` is smaller than `r y` but bigger than `r z`
Column {data-width=450}
-----------------------------------------------------------------------
### Box 3
```{r}
```
### Box 4
```{r}
```
【问题讨论】: