Установите цвет фона области диаграммы в rCharts / slidify / nvd3
Для следующей слайд-колоды
---
title : Foo
framework : revealjs # {io2012, html5slides, shower, dzslides, ...}
revealjs : {theme: solarized}
highlighter : highlight.js # {highlight.js, prettify, highlight}
hitheme : tomorrow #
widgets : [] # {mathjax, quiz, bootstrap}
mode : selfcontained # {standalone, draft}
ext_widgets : [libraries/nvd3]
---
## NVD3 Plot Iframe
```{r nvd3plot2, results = 'asis', comment = NA, message = F, echo = F}
require(rCharts)
n1 <- nPlot(mpg ~ wt, data = mtcars, type = 'scatterChart')
n1
```
Я хочу установить цвет фона диаграммы на белый.
Я могу сделать это, если я буду вязать его, а затем отредактировать<style>
блок в сгенерированномfigure/nvd3plot2.html
добавитьbackground-color: white;
:
<style>
.rChart {
display: block;
margin-left: auto;
margin-right: auto;
width: 800px;
height: 400px;
background-color: white;
}
</style>
Как мне сделать это из файла .Rmd?