This shows two examples of how to use rCharts with knitr
.
knitr-rcharts1.Rmd
: The default behavior ofrCharts
when embedded in aknitr
document is to save the chart as a separate html file and include it in your document as an iframe.knitr-rcharts2.Rmd
: You can forcerCharts
to print the chart inline, but you also need to include the requiredjs
andcss
assets. The two additional arguments ensure that js/css assets are included, and also rendered from an online CDN so that your html file is standalone.
If you have questions, post as a comment here or on the github repo for rCharts.
As always, thanks for the prompt response. I followed along with that baseline example per my SO question here:.
From above, I assume its the same issue in that its a lack of assets, but I am way over my skill level at this point.