statquant
statquant

Reputation: 14370

How can I plot a zoomable plot in knitr

I an using knitr for automatic html reports. I would like to be able to plot simple scatter plots (like time serie plots) but interactive ones, that would be zoomable. Ideally I could then use it in a knitr html document. I had a look at rgl but it seems overkill for my simple needs. What should I use ?

Upvotes: 2

Views: 178

Answers (1)

Rentrop
Rentrop

Reputation: 21497

Have a look into ggvis and/or rCharts.
Especcaly have a look at this example page of stock-data with rCharts:
http://timelyportfolio.github.io/rCharts_time_series/history.html
"rCharts 2013" might be interessting for you.

And this is an example of Markdown with knitr and rCharts: http://rstudio-pubs-static.s3.amazonaws.com/9331_9b5778029d1e46d0b3afcf1d861d7e70.html

Upvotes: 1

Related Questions