I want to create N slides to report descriptive statistics for N subsets of (big) data using slidify
package . In an earlier discussion Create parametric R markdown documentation? the combination of brew
and knitr
were advised to achieve this.
I'm wondering whether slidify
has its own workaround for such a task? I guess iterating through data to populate slides is even more logical than for plain text...
A minimal example (from the question above, I need slides instead of paragraphs)
```{r loopResults, echo=FALSE, results='asis'}
results = list(result1 = data.frame(x=rnorm(3), y=rnorm(3)), result2=data.frame(x=rnorm(3), y=rnorm(3)))
for(res in names(results)) {
cat(paste("<h3>Results for: ", res, "</h3>>"))
plot(results[[res]]$x, results[[res]]$y)
}