googleVis, knitr, Rpubs, replicating example, knitr option?

Rookie question, I think.

I'm just trying to replicate this:

Open a new markdown document (in Rstudio), paste:

T <- gvisTable(Exports, options = list(width = 200, height = 280))
G <- gvisGeoChart(Exports, locationvar = "Country", colorvar = "Profit", 
    options = list(width = 360, height = 280, dataMode = "regions"))
TG <- gvisMerge(T, G, horizontal = TRUE, tableOptions = "bgcolor=\"#CCCCCC\" cellspacing=10")

print(TG, "chart")

Between the ```{r} tags.

The resulting output (from the print function) is just the javascript (I think) code. It's not actually drawing the plot, in the preview window or the online version after publishing.

Is something else needed in the markdown? Like:

```{r something=something}

To get it to interpret the output from the print command properly?



```{r anythingyoulike, results='asis'}

The top of this post really should point that out imo...


something like ```{r results='asis'}. However I don't have knitr manual with me now so you need to check.

Need Your Help

Partial refresh change panel depending on whether backend document has been updated

xpages xpages-ssjs

I have a booking form that needs to check to see if a booking is still available when someone clicks the book button. If it is available I would like the SSJS code behind the button to process (this

Loading new HTML into Visual Basic web browser io webbrowser-control

I have a web browser that on load of the application i have placed html into it