I tried to display a googleVis chart in a rmarkdown page but it doesn't work... Instead, it displays the R code verbatim in the browser.
Result
function ()
{
chart <- func()
paste(chart$html$chart, collapse = "\n")
}
<environment: 0x5bd7558>
Code
```{r echo=F}
library(googleVis)
df <- data.frame(country=c("US", "GB", "BR"), val1=c(1,3,4), val2=c(23,12,32))
renderGvis({
gvisColumnChart(df, xvar="country", yvar=c("val1", "val2"))
})
```