Definir a cor de fundo da área do gráfico em rCharts / slidify / nvd3
Para o seguinte deck de slides,
---
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
```
Quero definir a cor do plano de fundo do gráfico para branco.
Eu posso fazer isso se tricotar e editar o<style>
bloco no geradofigure/nvd3plot2.html
adicionarbackground-color: white;
:
<style>
.rChart {
display: block;
margin-left: auto;
margin-right: auto;
width: 800px;
height: 400px;
background-color: white;
}
</style>
Como faço para fazer isso no arquivo .Rmd?